Sha256: bcaff849905f94e38ff9cf9de51cb3ff3fc97857cebcad6a48eb570f18246469
Contents?: true
Size: 622 Bytes
Versions: 7
Compression:
Stored size: 622 Bytes
Contents
# Author: Alexander Kravets # Slate, 2013 class Character::ApplicationController < ActionController::Base include Character::InstanceConcern include Character::AuthConcern before_filter :authenticate_user layout false def index render 'character/character' end def login respond_to_browserid end def logout logout_browserid if params['redirect'] redirect_to params['redirect'] else head :ok end end private def authenticate_user if not auto_login! if browserid_authenticated? then login! else register_first_user! end end end end
Version data entries
7 entries across 7 versions & 1 rubygems