Sha256: 06884f56060c4dc85f7de2d191a4d5e29099a58c5e65f7b3b458e44c538acef5

Contents?: true

Size: 662 Bytes

Versions: 4

Compression:

Stored size: 662 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
  
  # 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

4 entries across 4 versions & 1 rubygems

Version Path
authpwn_rails-0.10.3 lib/authpwn_rails/generators/templates/session_controller.rb
authpwn_rails-0.10.2 lib/authpwn_rails/generators/templates/session_controller.rb
authpwn_rails-0.10.1 lib/authpwn_rails/generators/templates/session_controller.rb
authpwn_rails-0.10.0 lib/authpwn_rails/generators/templates/session_controller.rb