mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-30 17:41:54 +08:00
init
This commit is contained in:
9
src/auth/mod.rs
Normal file
9
src/auth/mod.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
mod password;
|
||||
mod session;
|
||||
mod user;
|
||||
pub mod middleware;
|
||||
|
||||
pub use password::{hash_password, verify_password};
|
||||
pub use session::{Session, SessionStore};
|
||||
pub use user::{User, UserStore};
|
||||
pub use middleware::{AuthLayer, SESSION_COOKIE, auth_middleware, require_admin};
|
||||
Reference in New Issue
Block a user