make 1-letter and 2-letter usernames sticky

master
Aevann 2024-11-08 14:17:44 +02:00
parent 6c5204bd67
commit ac90ca9f6f
1 changed files with 1 additions and 1 deletions

View File

@ -867,7 +867,7 @@ def settings_name_change(v):
if existing and existing.id != v.id: if existing and existing.id != v.id:
stop(400, f"Username `{new_name}` is already in use.") 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.extra_username = v.username
v.username = new_name v.username = new_name