We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Updated Reset password (markdown)
Use singular route to define routes.
Revert 584e8b37e9174a0c91f810487935482d7262f5d2...3e1a815b0ff7a96c76b2dda3ee98bee18fac0c74 on Reset password
Don't rely on an error being raised! `change_password` returns false if the save failed rather than raising an exception.
Convert `form_tag` to `form_with`
Use new hash syntax
Exclude unused routes from password resets resource
change_password! raises error since https://github.com/Sorcery/sorcery/commit/8959f8c736866133271fdfe29c071b6e04229506
While `raise: false` fixes the error, the error is happening for an important reason and should be fixed (before_action isn't declared in ApplicationController)
Replace skip_before_filter by skip_before_action
Using '--only-submodules' instead of deprecated '--migrations'
When use Rails4, an error occurs "Missing host to link to! Please provide the :host parameter". so I change 'edit_password_reset_url' to 'edit_password_reset_path'
Keep the data fresh is make sense and needed(especially when you use a async strategy to send email), if not so,under certain conditions your user will receive the old token.
Rails will error because there's no mailer layout. Add the most basic layout possible.
password_reset_path in the edit form needs @token for params[:id] in update method
if we're using resources in the routes then `params[:id]` is the correct token. Also we don't need `@token`.
Fixing AbstractController::DoubleRenderError (https://github.com/NoamB/sorcery/issues/388)
In the case the user wasn't found from the password token, the 'not_authenticated' redirect was not exiting the function and an exception would be raised when password_confirmation was called on nil.
This is a better approach to building the url for resetting the password. There's no assumption as to the host.
Remove unnecessary form partial and moved the form into app/views/password_resets/edit.html.erb. Also gave alternative view for the forgot password? form.
Gah, use `unless`, not `if !`
Fixed migration generator to have "--migrations"
Updated line for reset_password generator
Updated `update` to include `@token = params[:token]`. Without setting `@token` the form will not contain the token and the user's second attempt to submit their reset request will fail.
Reverting params[:token]