module Wikicr::Helpers::User

Direct including types

Defined in:

controllers/helpers/user.cr

Instance Method Summary

Macro Summary

Instance Method Detail

def set_login_cookies_for(username) #

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


[View source]
def uses_login_cookies #

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


[View source]

Macro Detail

macro acl_permit!(perm) #

[View source]
macro current_user #

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


[View source]
macro user_name? #

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


[View source]
macro user_signed_in? #

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


[View source]