mirror of
https://github.com/simon987/nyaa.git
synced 2025-12-16 00:09:05 +00:00
user page: add manual activation button for mods (#472)
* user page: add manual activation button for mods Moderators can press this button on inactive users to manually activate their accounts. Furthermore, the admin form code has been refactored a bit, reducing some code duplication.
This commit is contained in:
@@ -408,6 +408,7 @@ class UploadForm(FlaskForm):
|
||||
|
||||
class UserForm(FlaskForm):
|
||||
user_class = SelectField('Change User Class')
|
||||
activate_user = SubmitField('Activate User')
|
||||
|
||||
def validate_user_class(form, field):
|
||||
if not field.data:
|
||||
|
||||
Reference in New Issue
Block a user