module Globals::Auth

Overview

Additional tools for Models.

Extended Modules

Defined in:

app/globals/auth.cr

Instance Method Summary

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?


[View source]
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


[View source]