|
@ -186,9 +186,9 @@ mod test { |
|
|
password: bcrypt::hash("mypassword", 5).unwrap(),
|
|
|
password: bcrypt::hash("mypassword", 5).unwrap(),
|
|
|
guildcard: 0,
|
|
|
guildcard: 0,
|
|
|
team_id: None,
|
|
|
team_id: None,
|
|
|
banned: false,
|
|
|
|
|
|
muted_until: SystemTime::now(),
|
|
|
|
|
|
created_at: SystemTime::now(),
|
|
|
|
|
|
|
|
|
banned_until: None,
|
|
|
|
|
|
muted_until: None,
|
|
|
|
|
|
created_at: chrono::Utc::now(),
|
|
|
flags: 0,
|
|
|
flags: 0,
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
}
|
|
@ -270,9 +270,9 @@ mod test { |
|
|
password: bcrypt::hash("notpassword", 5).unwrap(),
|
|
|
password: bcrypt::hash("notpassword", 5).unwrap(),
|
|
|
guildcard: 0,
|
|
|
guildcard: 0,
|
|
|
team_id: None,
|
|
|
team_id: None,
|
|
|
banned: false,
|
|
|
|
|
|
muted_until: SystemTime::now(),
|
|
|
|
|
|
created_at: SystemTime::now(),
|
|
|
|
|
|
|
|
|
banned_until: None,
|
|
|
|
|
|
muted_until: None,
|
|
|
|
|
|
created_at: chrono::Utc::now(),
|
|
|
flags: 0,
|
|
|
flags: 0,
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
}
|
|
@ -315,9 +315,9 @@ mod test { |
|
|
password: bcrypt::hash("mypassword", 5).unwrap(),
|
|
|
password: bcrypt::hash("mypassword", 5).unwrap(),
|
|
|
guildcard: 0,
|
|
|
guildcard: 0,
|
|
|
team_id: None,
|
|
|
team_id: None,
|
|
|
banned: true,
|
|
|
|
|
|
muted_until: SystemTime::now(),
|
|
|
|
|
|
created_at: SystemTime::now(),
|
|
|
|
|
|
|
|
|
banned_until: Some(chrono::Utc::now() + chrono::Duration::days(1)),
|
|
|
|
|
|
muted_until: None,
|
|
|
|
|
|
created_at: chrono::Utc::now(),
|
|
|
flags: 0,
|
|
|
flags: 0,
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|