Check if there is an existing session and log user in if it's not expired.
Check if there is an existing session and log user in if it's not expired. Usually you should setup it as early stateful hook:
LiftRules.earlyInStateful.append(MyLoginManager.checkSession)
Returns currently logged in user
Currently logged in user id
Checks if the current user has permission
Checks if the current user has permission
required permission
Checks if the current user has specified role
Checks if the current user has specified role
required role
Checks if there any user logged in.
Log user in to system
Log user in to system
user to be logged in
shows if user was authenticated
shows if the session shall be created
Log user out
List of additional actions to be performed on user login
List of additional actions to be performed on user logout.
Returns if the current user was authenticated
Base login manager
In most cases you should use this trait as basic for your login mananges.