Skip to content

Commit 2585356

Browse files
committed
fix incorrect password reset route
1 parent 61fe3af commit 2585356

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/lib/api/Auth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export async function Register(form: Omit<AuthForm, 'remember'>) {
5555
* @param email User email
5656
*/
5757
export async function RequestPasswordReset(email: string) {
58-
const req = await fetch(`${PUBLIC_BASE_URL}/api/users/password-reset`, {
58+
const req = await fetch(`${PUBLIC_BASE_URL}/api/mail/reset-passwd`, {
5959
method: 'POST',
6060
body: JSON.stringify({ email })
6161
})
@@ -76,7 +76,7 @@ export async function RequestPasswordReset(email: string) {
7676
* @param newPassword New password
7777
*/
7878
export async function ResetPassword(token: string, newPassword: string) {
79-
const req = await fetch(`${PUBLIC_BASE_URL}/api/users/password-reset/confirm`, {
79+
const req = await fetch(`${PUBLIC_BASE_URL}/api/users/reset-password`, {
8080
method: 'POST',
8181
body: JSON.stringify({ token, newPassword })
8282
})

0 commit comments

Comments
 (0)