From 4275cafb93552563be2e87531fe9ab88c76906db 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