Class: CzAuth::AuthenticationController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- CzAuth::AuthenticationController
- Defined in:
- app/controllers/cz_auth/authentication_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
5 6 7 8 9 |
# File 'app/controllers/cz_auth/authentication_controller.rb', line 5 def create resource = model.where(email: params[:email]).first @authenticated = perform_authentication_for(resource || model) render @authenticated ? 'create' : 'invalid' end |
#destroy ⇒ Object
11 12 13 |
# File 'app/controllers/cz_auth/authentication_controller.rb', line 11 def destroy end |