Class: Searls::Auth::LoginsController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- Searls::Auth::LoginsController
- Defined in:
- app/controllers/searls/auth/logins_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
Instance Method Details
#create ⇒ Object
10 11 12 13 14 15 16 |
# File 'app/controllers/searls/auth/logins_controller.rb', line 10 def create if Searls::Auth.config.auth_methods.include?(:password) && params[:send_login_email].blank? handle_password_login else handle_email_login end end |
#destroy ⇒ Object
18 19 20 21 22 |
# File 'app/controllers/searls/auth/logins_controller.rb', line 18 def destroy ResetsSession.new.reset(self, except_for: [:has_logged_in_before]) flash[:notice] = Searls::Auth.config.resolve(:flash_notice_after_logout, params) redirect_to searls_auth.login_path end |