Skip to content

Commit

Permalink
refactor: nive resetPassword api route to auth
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsey committed Feb 11, 2022
1 parent 45b5475 commit d5c3f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`),
Expand All @@ -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'),
Expand Down

0 comments on commit d5c3f71

Please sign in to comment.