Enables login over POST in addition to GET (#4268)
* Enables login over POST in addition to GET * Removes explcit method:POST as rp.post does this naturally
This commit is contained in:
committed by
Florent Vilmart
parent
d93b0e1fd9
commit
0db858b04c
@@ -256,6 +256,7 @@ export class UsersRouter extends ClassesRouter {
|
||||
this.route('PUT', '/users/:objectId', req => { return this.handleUpdate(req); });
|
||||
this.route('DELETE', '/users/:objectId', req => { return this.handleDelete(req); });
|
||||
this.route('GET', '/login', req => { return this.handleLogIn(req); });
|
||||
this.route('POST', '/login', req => { return this.handleLogIn(req); });
|
||||
this.route('POST', '/logout', req => { return this.handleLogOut(req); });
|
||||
this.route('POST', '/requestPasswordReset', req => { return this.handleResetRequest(req); });
|
||||
this.route('POST', '/verificationEmailRequest', req => { return this.handleVerificationEmailRequest(req); });
|
||||
|
||||
Reference in New Issue
Block a user