intial commit
This commit is contained in:
18
src/auth/mod.rs
Normal file
18
src/auth/mod.rs
Normal 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;
|
||||
Reference in New Issue
Block a user