Sha256: 5cdebf71f8ff519dac6003aa3d0d88a7893127920713c687028c2f3bb0ce1279
Contents?: true
Size: 931 Bytes
Versions: 2
Compression:
Stored size: 931 Bytes
Contents
# Manages logging in and out of the application. class SessionController < ApplicationController include Authpwn::SessionController # Sets up the 'session/welcome' view. No user is logged in. def welcome # You can brag about some statistics. @user_count = User.count end private :welcome # Sets up the 'session/home' view. A user is logged in. def home # Pull information about the current user. @user = current_user end private :home # The notification text displayed when a session authentication fails. def bounce_notice_text(reason) case reason when :invalid 'Invalid e-mail or password' when :blocked 'Account blocked. Please verify your e-mail address' end end # You shouldn't extend the session controller, so you can benefit from future # features, like Facebook / Twitter / OpenID integration. But, if you must, # you can do it here. end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
authpwn_rails-0.10.5 | lib/authpwn_rails/generators/templates/session_controller.rb |
authpwn_rails-0.10.4 | lib/authpwn_rails/generators/templates/session_controller.rb |