Module: Clearance::App::Controllers::PasswordsController::PrivateInstanceMethods

Defined in:
lib/clearance/app/controllers/passwords_controller.rb

Instance Method Summary collapse

Instance Method Details

#existing_user?Boolean

Returns:

  • (Boolean)


51
52
53
54
55
56
57
# File 'lib/clearance/app/controllers/passwords_controller.rb', line 51

def existing_user?
  user = User.find_by_email_and_crypted_password(params[:email],
                                                 params[:password])
  if user.nil?
    render :nothing => true, :status => :not_found
  end
end

#url_after_createObject



59
60
61
# File 'lib/clearance/app/controllers/passwords_controller.rb', line 59

def url_after_create
  new_session_url
end