Module: Bpluser::Registrations::InstanceMethods

Defined in:
app/controllers/concerns/bpluser/registrations.rb

Instance Method Summary collapse

Instance Method Details

#createObject

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: [: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