From d5c3f71c97fe00314a92c2b1c882d75cf2cd0ec0 Mon Sep 17 00:00:00 2001 From: Anthony Kinsey Date: Fri, 11 Feb 2022 11:11:30 -1000 Subject: [PATCH] refactor: nive resetPassword api route to auth --- src/api/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/index.js b/src/api/index.js index d4cf0c11..79bc353e 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -134,6 +134,7 @@ export const authApi = { authenticate: () => $http('/api/authenticate'), confirmRegistration: data => $http('/api/confirm', { method: 'POST', data }, true), inviteRegistration: data => $http('/api/join', { method: 'POST', data }, true), + resetPassword: data => $http(`/api/reset`, { method: 'POST', data }, true), emailAvailable: email => $http(`/api/register/email/${email}`), usernameAvailable: username => $http(`/api/register/username/${username}`), inviteExists: email => $http(`/api/invites/exists?email=${email}`), @@ -158,7 +159,6 @@ export const usersApi = { ignore: user => $http(`/api/ignoreUsers/ignore/${user.id}`, { method: 'POST' }), unignore: user => $http(`/api/ignoreUsers/unignore/${user.id}`, { method: 'POST' }), adminRecover: data => $http(`/api/user/recover`, { method: 'POST', data }), - resetPassword: data => $http(`/api/reset`, { method: 'POST', data }), checkResetToken: (username, token) => $http(`/api/reset/${username}/${token}/validate`), trust: { getTrustList: () => $http('/api/trustlist'),