19 lines
388 B
Rust
19 lines
388 B
Rust
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;
|