diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index 3394ba2..ec550a3 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -13,12 +13,7 @@ else existing_user = User.find_by_email(sign_up_params[:email]) if !existing_user.nil? then - if (existing_user.password == "" || existing_user.password.nil?) && existing_user.confirmed_at.nil? then - @user = existing_user - do_update(false, true) - else - redirect_to after_sign_up_error_path_for(resource), alert: I18n.t('helpers.email_already_registered') - end + redirect_to after_sign_up_error_path_for(resource), alert: I18n.t('helpers.email_already_registered') else build_resource(sign_up_params) if resource.save