humphrey_auth 0.1.5

User authentication for the Humphrey web server.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::session::Session;
use crate::user::User;

use humphrey_json::prelude::*;

json_map! {
    User,
    uid => "uid",
    session => "session",
    password_hash => "password_hash"
}

json_map! {
    Session,
    token => "token",
    expiry => "expiry"
}