app/controllers/symphonia/accounts_controller.rb in symphonia-3.1.1 vs app/controllers/symphonia/accounts_controller.rb in symphonia-3.1.2
- old
+ new
@@ -66,11 +66,11 @@
def new_activation
end
def resend_activation
- @user = find_account_by_mail(params.require(:mail))
+ @user = find_account_by_mail(params.require(:email))
if @user
if @user.active?
redirect_to root_path, flash: { error: t(:text_user_alerady_active) }
else
@user.reset_perishable_token!
@@ -113,10 +113,10 @@
return redirect_to(user_current_path, notice: t(:text_updated))
end
end
def lost_password
- @user = find_account_by_mail(params[:mail]) if params[:mail]
+ @user = find_account_by_mail(params[:email]) if params[:email]
if @user
if @user.active?
@user.reset_perishable_token!
Notifier.reset_password_user(@user).deliver_later
redirect_to login_path, notice: t(:text_reset_password_resend)