1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
use super::authenticator::Authenticator;

pub struct DummyAuthenticator{}

impl Authenticator for DummyAuthenticator{
    const COOKIE_IDENTIFIER : &'static str = "dummy.sessionid";

    fn user_id(&self) -> String{
        "hello world".to_string()
    }   

    fn check_credentials(_username: String, _password: String) -> Result<Self,Self>{
        Ok(DummyAuthenticator{})
    }
}