From a53ccc6f5ca64d46abb94ae743dc5d063a87959e Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 20 Apr 2021 00:43:21 +0300 Subject: Bugfix Users cannot authenticate twice now --- src/schema.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/schema.rs') diff --git a/src/schema.rs b/src/schema.rs index 81bfc1b..40c6329 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -253,6 +253,12 @@ pub struct MetuId { passwd: String, } +impl MetuId { + pub fn quick_equal(&self, other: &str) -> bool { + self.id == other + } +} + /// The plaintext of the initial user authentication request #[derive(Serialize, Deserialize, Debug, PartialEq)] pub struct AuthRequest { -- cgit v1.2.3-70-g09d2