Skip to content

Commit

Permalink
Merge pull request #47 from loftwah/dl/fix-profile-update
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
loftwah authored Aug 24, 2024
2 parents 1f7814a + 5c882e4 commit 7a006af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/users/registrations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def update
end

if successfully_updated
bypass_sign_in(@user) # Sign in the user bypassing validation
redirect_to edit_user_registration_path, notice: 'Profile updated successfully'
else
render :edit
Expand Down Expand Up @@ -71,4 +72,4 @@ def account_update_params
end
end
end
end
end

0 comments on commit 7a006af

Please sign in to comment.