module Solerian::Auth

Defined in:

solerian/auth.cr

Constant Summary

STORAGE = Path["./user.db.json"]
USERS = File.open(STORAGE, "r") do |f| Hash(String, User).from_json(f) end

Class Method Summary

Class Method Detail

def self.assert_auth(ctx) #

[View source]
def self.check_login(ctx : HTTP::Server::Context, username : String | Nil, secret : String | Nil) : String #

[View source]
def self.user?(ctx) #

[View source]
def self.username(ctx) #

[View source]