mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Raise exception for anti-lockout-username
This commit is contained in:
parent
aec14a6713
commit
ecee8b494c
@ -176,7 +176,8 @@ class UsersController:
|
||||
# create sets to store role data
|
||||
added_roles = set()
|
||||
removed_roles = set()
|
||||
|
||||
if user_data.get("username", None) == "anti-lockout-user":
|
||||
raise ValueError("Invalid Username")
|
||||
# search for changes in user data
|
||||
for key in user_data:
|
||||
if key == "user_id":
|
||||
|
Loading…
Reference in New Issue
Block a user