forked from MarseyWorld/MarseyWorld
make 1-letter and 2-letter usernames sticky
parent
6c5204bd67
commit
ac90ca9f6f
|
@ -867,7 +867,7 @@ def settings_name_change(v):
|
|||
if existing and existing.id != v.id:
|
||||
stop(400, f"Username `{new_name}` is already in use.")
|
||||
|
||||
if v.patron >= 4 and v.username != v.original_username:
|
||||
if v.patron >= 4 and v.username != v.original_username and not (v.extra_username and len(v.extra_username) < 3):
|
||||
v.extra_username = v.username
|
||||
|
||||
v.username = new_name
|
||||
|
|
Loading…
Reference in New Issue