sentinel v2.0.0 Sentinel.Controllers.Json.PasswordController
Handles the password create and reset actions for JSON APIs
Summary
Functions
Create a password reset token for a user Params should be: {email: “user@example.com”} If successfull, sends an email with instructions on how to reset the password. Responds with status 200 and body “ok” if successful or not, for security
Resets a users password if the provided token matches Params should be: {user_id: 1, password_reset_token: “abc123”} Responds with status 200 and body {token: token} if successfull. Use this token in subsequent requests as authentication. Responds with status 422 and body {errors: [messages]} otherwise
Functions
Create a password reset token for a user Params should be: {email: “user@example.com”} If successfull, sends an email with instructions on how to reset the password. Responds with status 200 and body “ok” if successful or not, for security.
Resets a users password if the provided token matches Params should be: {user_id: 1, password_reset_token: “abc123”} Responds with status 200 and body {token: token} if successfull. Use this token in subsequent requests as authentication. Responds with status 422 and body {errors: [messages]} otherwise.