Skip to content

Commit

Permalink
Preserve pass_crypt_confirmation in the new user hash
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Nov 16, 2023
1 parent 2fcee96 commit b155313
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ def create
render :action => "new"
elsif current_user.auth_provider.present?
# Verify external authenticator before moving on
session[:new_user] = current_user.attributes.slice("email", "display_name", "pass_crypt")
session[:new_user] = current_user.attributes.slice("email", "display_name", "pass_crypt", "pass_crypt_confirmation")
redirect_to auth_url(current_user.auth_provider, current_user.auth_uid), :status => :temporary_redirect
else
# Save the user record
session[:new_user] = current_user.attributes.slice("email", "display_name", "pass_crypt")
session[:new_user] = current_user.attributes.slice("email", "display_name", "pass_crypt", "pass_crypt_confirmation")
redirect_to :action => :terms
end
end
Expand Down

0 comments on commit b155313

Please sign in to comment.