Trait rocket_simpleauth::authenticator::Authenticator
[−]
[src]
pub trait Authenticator {
const COOKIE_IDENTIFIER: &'static str;
fn user_id(&self) -> String;
fn check_credentials(
username: String,
password: String
) -> Result<Self, Self>
where
Self: Sized;
}
Associated Constants
const COOKIE_IDENTIFIER: &'static str
the identifier used to denote the session cookie
Required Methods
fn user_id(&self) -> String
a function that returns a user_id in the form a String
fn check_credentials(username: String, password: String) -> Result<Self, Self> where
Self: Sized,
Self: Sized,
a function that checks if the user pass combination is valid and if it is returns true and an instance of itself
Implementors
impl Authenticator for DummyAuthenticator