pub fn secure(&mut self, user: Option<(i64, Option<String>)>) {
        match user {
            Some(user) => {
                self.uid = Some(user.0);
                self.access = user.1;
            }
            _ => ()
        }
        self.token = None;
        self.basic = None;
    }
///
/// Remove user data from the Auth object
///
/// Used as a generic function by validate to ensure future
/// authentication methods are cleared with each validate
///
Remove user data from the Auth object
Used as a generic function by validate to ensure future
authentication methods are cleared with each validate
Remove user data from the Auth object Used as a generic function by validate to ensure future authentication methods are cleared with each validate
pub fn secure(&mut self, user: Option<(i64, Option<String>)>) {
        match user {
            Some(user) => {
                self.uid = Some(user.0);
                self.access = user.1;
            }
            _ => ()
        }
        self.token = None;
        self.basic = None;
    }
pub fn secure ( & mut self , user : Option < ( i64 , Option < String > ) > ) { match user { Some ( user ) => { self . uid = Some ( user . 0 ) ; self . access = user . 1 ; } _ => ( ) } self . token = None ; self . basic = None ; }
Remove user data from the Auth object
Used as a generic function by validate to ensure future
authentication methods are cleared with each validate
Remove user data from the Auth object Used as a generic function by validate to ensure future authentication methods are cleared with each validate
&mut self
user
Option<(i64, Option<String>)>
&mut self
user
Option<(i64, Option<String>)>