aboutsummaryrefslogtreecommitdiffstats
path: root/src/schema.rs
diff options
context:
space:
mode:
authorYigit Sever2021-04-20 00:43:21 +0300
committerYigit Sever2021-04-20 00:43:21 +0300
commita53ccc6f5ca64d46abb94ae743dc5d063a87959e (patch)
tree75feb35db75b627d6e7e1a333b22094b58fca780 /src/schema.rs
parent10afcb0b0ea8794b5b14acedba48bf291b164e41 (diff)
downloadgradecoin-a53ccc6f5ca64d46abb94ae743dc5d063a87959e.tar.gz
gradecoin-a53ccc6f5ca64d46abb94ae743dc5d063a87959e.tar.bz2
gradecoin-a53ccc6f5ca64d46abb94ae743dc5d063a87959e.zip
Bugfix
Users cannot authenticate twice now
Diffstat (limited to 'src/schema.rs')
-rw-r--r--src/schema.rs6
1 files changed, 6 insertions, 0 deletions
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 {
253 passwd: String, 253 passwd: String,
254} 254}
255 255
256impl MetuId {
257 pub fn quick_equal(&self, other: &str) -> bool {
258 self.id == other
259 }
260}
261
256/// The plaintext of the initial user authentication request 262/// The plaintext of the initial user authentication request
257#[derive(Serialize, Deserialize, Debug, PartialEq)] 263#[derive(Serialize, Deserialize, Debug, PartialEq)]
258pub struct AuthRequest { 264pub struct AuthRequest {