Adding more registration options, and starting work on supporter levels
This commit is contained in:
parent
61a02d17a3
commit
973913b3bf
25 changed files with 228 additions and 20 deletions
|
|
@ -18,16 +18,14 @@ class RegistrationsController < Devise::RegistrationsController
|
|||
else
|
||||
params[:user].delete :password
|
||||
params[:user].delete :password_confirmation
|
||||
params[:user].delete :current_password
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
successfully_updated = if email_changed or password_changed
|
||||
@user.update_with_password(params[:user])
|
||||
else
|
||||
@user.update_without_password(params[:user])
|
||||
end
|
||||
if email_changed or password_changed
|
||||
successfully_updated = @user.update_with_password(params[:user])
|
||||
else
|
||||
successfully_updated = @user.update_without_password(params[:user])
|
||||
end
|
||||
|
||||
if successfully_updated
|
||||
set_flash_message :notice, :updated
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue