module Solerian::Auth
Defined in:
solerian/auth.crConstant Summary
-
STORAGE =
Path["./user.db.json"]
-
USERS =
File.open(STORAGE, "r") do |f| Hash(String, User).from_json(f) end
Class Method Summary
- .assert_auth(ctx)
- .check_login(ctx : HTTP::Server::Context, username : String | Nil, secret : String | Nil) : String
- .user?(ctx)
- .username(ctx)
Class Method Detail
def self.check_login(ctx : HTTP::Server::Context, username : String | Nil, secret : String | Nil) : String
#