module

Wikicr::Helpers::User

Instance methods

set_login_cookies_for(username)

The username+token are set into the cookies in order to allow future auto-login

Source
uses_login_cookies

If a cookie is set but the user is not signed in, try to use it and renew the cookie

Source

Macros

acl_permit!(perm)
Source
current_user

If the user is connected return an Wikicr::User, else the default user (guest)

Source
user_name?

Nil if not signed in, else it returns the user name

Source
user_signed_in?

Nil if not signed in, else it returns the user name

Source