lock extra_username to $20 or higher

pull/225/head
Aevann 2024-02-24 20:31:04 +02:00
parent c53be614f2
commit 4e0304b4d2
1 changed files with 1 additions and 1 deletions

View File

@ -800,7 +800,7 @@ def settings_name_change(v):
if existing and existing.id != v.id:
abort(400, f"Username `{new_name}` is already in use.")
if v.patron and v.username != v.original_username:
if v.patron >= 4 and v.username != v.original_username:
v.extra_username = v.username
v.username = new_name