module Wikicr::Helpers::User
Direct including types
Defined in:
controllers/helpers/user.crInstance Method Summary
-
#set_login_cookies_for(username)
The username+token are set into the cookies in order to allow future auto-login
-
#uses_login_cookies
If a cookie is set but the user is not signed in, try to use it and renew the cookie
Macro Summary
- acl_permit!(perm)
-
current_user
If the user is connected return an
Wikicr::User
, else the default user (guest) -
user_name?
Nil if not signed in, else it returns the user name
-
user_signed_in?
Nil if not signed in, else it returns the user name
Instance Method Detail
def set_login_cookies_for(username)
#
The username+token are set into the cookies in order to allow future auto-login
def uses_login_cookies
#
If a cookie is set but the user is not signed in, try to use it and renew the cookie