@@ -134,6 +134,7 @@ export const authApi = {
134134 authenticate : ( ) => $http ( '/api/authenticate' ) ,
135135 confirmRegistration : data => $http ( '/api/confirm' , { method : 'POST' , data } , true ) ,
136136 inviteRegistration : data => $http ( '/api/join' , { method : 'POST' , data } , true ) ,
137+ resetPassword : data => $http ( `/api/reset` , { method : 'POST' , data } , true ) ,
137138 emailAvailable : email => $http ( `/api/register/email/${ email } ` ) ,
138139 usernameAvailable : username => $http ( `/api/register/username/${ username } ` ) ,
139140 inviteExists : email => $http ( `/api/invites/exists?email=${ email } ` ) ,
@@ -158,7 +159,6 @@ export const usersApi = {
158159 ignore : user => $http ( `/api/ignoreUsers/ignore/${ user . id } ` , { method : 'POST' } ) ,
159160 unignore : user => $http ( `/api/ignoreUsers/unignore/${ user . id } ` , { method : 'POST' } ) ,
160161 adminRecover : data => $http ( `/api/user/recover` , { method : 'POST' , data } ) ,
161- resetPassword : data => $http ( `/api/reset` , { method : 'POST' , data } ) ,
162162 checkResetToken : ( username , token ) => $http ( `/api/reset/${ username } /${ token } /validate` ) ,
163163 trust : {
164164 getTrustList : ( ) => $http ( '/api/trustlist' ) ,
0 commit comments