diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-07 17:06:45 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-07 17:06:45 -0800 |
commit | 3654fcfca716c7994bd166436cfb57b6b65d7c85 (patch) | |
tree | 7d4613f20b3f7347dae324fd7045e9209802b1da /rust/src/api_helpers.rs | |
parent | 39aba8b86cd4cec01e26eb08f74b5da22f4fe9af (diff) | |
download | fatcat-3654fcfca716c7994bd166436cfb57b6b65d7c85.tar.gz fatcat-3654fcfca716c7994bd166436cfb57b6b65d7c85.zip |
only superusers get auto-magic-privs
Diffstat (limited to 'rust/src/api_helpers.rs')
-rw-r--r-- | rust/src/api_helpers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/api_helpers.rs b/rust/src/api_helpers.rs index 79114d4f..5e68d8e2 100644 --- a/rust/src/api_helpers.rs +++ b/rust/src/api_helpers.rs @@ -359,7 +359,7 @@ pub fn uuid2fcid(id: &Uuid) -> String { pub fn check_username(raw: &str) -> Result<()> { lazy_static! { - static ref RE: Regex = Regex::new(r"^[A-Za-z0-9][A-Za-z0-9._-]{2,15}$").unwrap(); + static ref RE: Regex = Regex::new(r"^[A-Za-z0-9][A-Za-z0-9._-]{2,19}$").unwrap(); } if RE.is_match(raw) { Ok(()) |