mirror of
https://github.com/ViViDboarder/bitwarden_rs_ldap.git
synced 2024-11-21 18:56: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);
|
const COOKIE_LIFESPAN: Duration = Duration::from_secs(20 * 60);
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug, Deserialize)]
|
||||||
#[derive(Deserialize)]
|
|
||||||
pub struct User {
|
pub struct User {
|
||||||
#[serde(rename = "Email")]
|
#[serde(rename = "Email")]
|
||||||
email: String,
|
email: String,
|
||||||
@ -25,7 +24,7 @@ impl User {
|
|||||||
|
|
||||||
pub fn is_disabled(&self) -> bool {
|
pub fn is_disabled(&self) -> bool {
|
||||||
// HACK: Magic number
|
// HACK: Magic number
|
||||||
self.status != 2
|
self.status == 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user