2023-06-09 13:45:07 +00:00
|
|
|
use crate::dbs::Auth;
|
|
|
|
use crate::dbs::Session;
|
2022-07-04 00:01:24 +00:00
|
|
|
use crate::err::Error;
|
|
|
|
use std::sync::Arc;
|
|
|
|
|
2023-06-09 13:45:07 +00:00
|
|
|
pub fn clear(session: &mut Session) -> Result<(), Error> {
|
2022-07-04 00:01:24 +00:00
|
|
|
session.au = Arc::new(Auth::No);
|
2022-10-04 21:03:40 +00:00
|
|
|
session.tk = None;
|
|
|
|
session.sc = None;
|
|
|
|
session.sd = None;
|
2022-07-04 00:01:24 +00:00
|
|
|
Ok(())
|
|
|
|
}
|