Module: Bpluser::Registrations::InstanceMethods
- Defined in:
- app/controllers/concerns/bpluser/registrations.rb
Instance Method Summary collapse
-
#create ⇒ Object
POST /resource.
Instance Method Details
#create ⇒ Object
POST /resource
14 15 16 17 18 19 20 21 |
# File 'app/controllers/concerns/bpluser/registrations.rb', line 14 def create if User.exists?(email: sign_up_params[:email]) flash[:error] = "An account with that email (#{sign_up_params[:email]}) already exists. Please sign in or click the \"Forgot your password?\" link below." redirect_to new_user_session_path and return end super end |