Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Identity::EmailsController < ApplicationController

def update
if @user.update(user_params)
redirect_to_root
redirect_to_root, status: :see_other
else
render :edit, status: :unprocessable_entity
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Identity::PasswordResetsController < ApplicationController

def update
if @user.update(user_params)
redirect_to sign_in_path, notice: "Your password was reset successfully. Please sign in"
redirect_to sign_in_path, status: :see_other, notice: "Your password was reset successfully. Please sign in"
else
render :edit, status: :unprocessable_entity
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class PasswordsController < ApplicationController

def update
if @user.update(user_params)
redirect_to root_path, notice: "Your password has been changed"
redirect_to root_path, status: :see_other, notice: "Your password has been changed"
else
render :edit, status: :unprocessable_entity
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class SessionsController < ApplicationController
end

def destroy
@session.destroy; redirect_to(sessions_path, notice: "That session has been logged out")
@session.destroy; redirect_to(sessions_path, status: :see_other, notice: "That session has been logged out")
end

private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ class TwoFactorAuthentication::Profile::SecurityKeysController < ApplicationCont

def update
@security_key.update! name: params[:name]
redirect_to two_factor_authentication_profile_security_keys_path, notice: "Your changes have been saved"
redirect_to two_factor_authentication_profile_security_keys_path, status: :see_other, notice: "Your changes have been saved"
end

def destroy
@security_key.destroy
redirect_to two_factor_authentication_profile_security_keys_path, notice: "#{@security_key.name} has been removed"
redirect_to two_factor_authentication_profile_security_keys_path, status: :see_other, notice: "#{@security_key.name} has been removed"
end

private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TwoFactorAuthentication::Profile::TotpsController < ApplicationController

def update
@user.update! otp_secret: ROTP::Base32.random
redirect_to new_two_factor_authentication_profile_totp_path
redirect_to new_two_factor_authentication_profile_totp_path, status: :see_other
end

private
Expand Down