File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export async function Register(form: Omit<AuthForm, 'remember'>) {
5555 * @param email User email
5656 */
5757export 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 */
7878export 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 } )
You can’t perform that action at this time.
0 commit comments