// can explore JWT for auth tokens, probably not needed right now as API
// requestor is the same owner as this service
can explore JWT for auth tokens, probably not needed right now as API
requestor is the same owner as this service
can explore JWT for auth tokens probably not needed right now as API requestor is the same owner as this service
pub fn invalidate_tokens_for_user(name: &str) {
    let db_filepath = configuration::get_db_filepath();
    let connection = sqlite::open(db_filepath).unwrap();
    let result = ::db::retrieval::get_id_for_user(name);
    match result {
        Some(id) => {
            let mut c = connection
                .prepare("DELETE FROM tokens WHERE (uid = ?)")
                .unwrap();
            c.bind(1, &sqlite::Value::Integer(id)).unwrap();
            info!("{}", id);
            c.next().unwrap();
        }
        None => {}
    };
}
pub fn invalidate_tokens_for_user ( name : & str ) { let db_filepath = configuration :: get_db_filepath ( ) ; let connection = sqlite :: open ( db_filepath ) . unwrap ( ) ; let result = :: db :: retrieval :: get_id_for_user ( name ) ; match result { Some ( id ) => { let mut c = connection . prepare ( " " ) . unwrap ( ) ; c . bind ( 1 , & sqlite :: Value :: Integer ( id ) ) . unwrap ( ) ; info ! ( " " id ) ; c . next ( ) . unwrap ( ) ; } None => { } } ; }
can explore JWT for auth tokens, probably not needed right now as API
requestor is the same owner as this service
can explore JWT for auth tokens probably not needed right now as API requestor is the same owner as this service
name
&str