We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
http://stackoverflow.com/questions/4264750/devise-logging-out-automatically-after-password-change
def update if current_user.update_with_password(params[:user_params]) bypass_sign_in current_user redirect_to root_path, notice: "Password updated successfully!" else redirect_back(fallback_location: root_path, alert: current_user.errors.full_messages.join(" ").html_safe) end end
def update
if current_user.update_with_password(params[:user_params])
bypass_sign_in current_user
redirect_to root_path, notice: "Password updated successfully!"
else
redirect_back(fallback_location: root_path, alert: current_user.errors.full_messages.join(" ").html_safe)
end