runlight 0.2.0

Privacy friendly web analytics that lives inside your Rust app: mount a route, add a script tag, read your stats at /runlight
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Accounts: who may sign in, two-factor, invites, the throttle on sign-in tries, and the pages they use.

pub mod auth;
pub mod crypto;
pub mod pages;
pub mod web;

pub use auth::{
    AccountError, Accounts, AuthError, INVITE_MS, Invite, MIN_PASSWORD, NewInvite, Role, SESSION_COOKIE, SESSION_MS,
    Throttle, User, base32, otpauth_uri, totp,
};
pub use crypto::{check_password, hash_password, weaker_than_now};
pub use web::{AccountsWeb, AccountsWebOptions, FirstAccount, Home, accounts_web, setup_code};