password reset
This commit is contained in:
7
app.py
7
app.py
@@ -112,6 +112,13 @@ def create_app():
|
||||
cleanup_trash()
|
||||
click.echo("Trash cleanup completed.")
|
||||
|
||||
@app.cli.command("cleanup-tokens")
|
||||
def cleanup_tokens_command():
|
||||
"""Clean up expired password reset and setup tokens."""
|
||||
from tasks import cleanup_expired_tokens
|
||||
cleanup_expired_tokens()
|
||||
click.echo("Token cleanup completed.")
|
||||
|
||||
@app.cli.command("create-admin")
|
||||
def create_admin():
|
||||
"""Create the default administrator user."""
|
||||
|
||||
Reference in New Issue
Block a user