summaryrefslogtreecommitdiff
path: root/src/api/auth.rs
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2023-01-27 16:04:04 -0500
committerTyler Murphy <tylermurphy534@gmail.com>2023-01-27 16:04:04 -0500
commit8536e41c64811630ce8c99eb49d81f89bfb69456 (patch)
tree4066f9e7dc47fbda4b6aa74871d26ebbe3a43d26 /src/api/auth.rs
parentinput length and range checking (diff)
downloadxssbook-8536e41c64811630ce8c99eb49d81f89bfb69456.tar.gz
xssbook-8536e41c64811630ce8c99eb49d81f89bfb69456.tar.bz2
xssbook-8536e41c64811630ce8c99eb49d81f89bfb69456.zip
rusty boio finished
Diffstat (limited to 'src/api/auth.rs')
-rw-r--r--src/api/auth.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/auth.rs b/src/api/auth.rs
index b469d4d..54c4e06 100644
--- a/src/api/auth.rs
+++ b/src/api/auth.rs
@@ -26,7 +26,7 @@ impl Check for RegistrationRequet {
Self::assert_length(&self.gender, 1, 100, "Gender can only by 1-100 characters long")?;
Self::assert_range(self.day as u64, 1, 255, "Birthday day can only be between 1-255")?;
Self::assert_range(self.month as u64, 1, 255, "Birthday month can only be between 1-255")?;
- Self::assert_range(self.year as u64, 1, 2147483647, "Birthday year can only be between 1-2147483647")?;
+ Self::assert_range(self.year as u64, 1, 4294967295, "Birthday year can only be between 1-4294967295")?;
Ok(())
}
}