module Globals::Auth
Overview
Additional tools for Models.
Extended Modules
Defined in:
app/globals/auth.crInstance Method Summary
-
#user_authenticated?(env : HTTP::Server::Context, lang_code : String) : NamedTuple(is_authenticated: Bool, is_admin: Bool, user: Services::Admin::Models::User | Nil)
Check if the user is authenticated?
-
#user_authentication(env : HTTP::Server::Context, lang_code : String, login : String, password : String) : NamedTuple(is_authenticated: Bool, is_admin: Bool, user: Services::Admin::Models::User | Nil)
User authorization
Instance Method Detail
def user_authenticated?(env : HTTP::Server::Context, lang_code : String) : NamedTuple(is_authenticated: Bool, is_admin: Bool, user: Services::Admin::Models::User | Nil)
#
Check if the user is authenticated?
def user_authentication(env : HTTP::Server::Context, lang_code : String, login : String, password : String) : NamedTuple(is_authenticated: Bool, is_admin: Bool, user: Services::Admin::Models::User | Nil)
#
User authorization