intial commit

This commit is contained in:
2026-02-25 22:53:25 +01:00
commit 054c3ff1f8
12 changed files with 1164 additions and 0 deletions

18
src/auth/mod.rs Normal file
View File

@@ -0,0 +1,18 @@
use std::fmt::{Debug, Display};
#[derive(Debug)]
pub enum AuthenticateResponse<F: Display + Debug> {
/// All rightie
Success,
/// The message will be displayed to the frontend, must give a reason of why the user login
/// failed
Failed(F),
}
#[cfg(feature = "pamsock")]
pub mod pamsock;
#[cfg(feature = "pamsock")]
use pamsock as auth;
pub use auth::authenticate;