mirror of
https://github.com/ViViDboarder/bitwarden_rs_ldap.git
synced 2024-11-21 10:46:27 +00:00
Fix disabled check
This commit is contained in:
parent
b6c9cae8f3
commit
f94f5ae7e0
@ -9,8 +9,7 @@ use std::time::{Duration, Instant};
|
||||
|
||||
const COOKIE_LIFESPAN: Duration = Duration::from_secs(20 * 60);
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Deserialize)]
|
||||
#[derive(Debug, Deserialize)]
|
||||
pub struct User {
|
||||
#[serde(rename = "Email")]
|
||||
email: String,
|
||||
@ -25,7 +24,7 @@ impl User {
|
||||
|
||||
pub fn is_disabled(&self) -> bool {
|
||||
// HACK: Magic number
|
||||
self.status != 2
|
||||
self.status == 2
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user