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

the identifier used to denote the session cookie

Required Methods

a function that returns a user_id in the form a String

a function that checks if the user pass combination is valid and if it is returns true and an instance of itself

Implementors