app/controllers/password_resets_controller.rb
# Redirects if received password reset token dosent corresponds to the one
# stored in db.
Redirects if received password reset token dosent corresponds to the one
stored in db.
Redirects if received password reset token dosent corresponds to the one stored in db .
def redirect_if_invalid_token
    return if @user.authenticated?(:password_reset, params[:id])
    flash[:danger] = 'Password reset token invalid.'
    redirect_to root_path
  end
def redirect_if_invalid_token return if @user . authenticated? ( :password_reset , params [ :id ] ) flash [ :danger ] = 'Password reset token invalid.' redirect_to root_path end
Redirects if received password reset token dosent corresponds to the one
stored in db.
Redirects if received password reset token dosent corresponds to the one stored in db .