Module: MinimalistAuthentication::Sessions

Extended by:
ActiveSupport::Concern
Defined in:
lib/minimalist_authentication/sessions.rb

Instance Method Summary collapse

Instance Method Details

#createObject



19
20
21
22
23
24
25
26
# File 'lib/minimalist_authentication/sessions.rb', line 19

def create
  if authenticated_user
    
    set_or_verify_email || after_authentication_success
  else
    after_authentication_failure
  end
end

#destroyObject



28
29
30
31
# File 'lib/minimalist_authentication/sessions.rb', line 28

def destroy
  reset_session
  redirect_to logout_redirect_to, notice: t(".notice"), status: :see_other
end

#newObject



15
16
17
# File 'lib/minimalist_authentication/sessions.rb', line 15

def new
  user
end