add password reset function by extending the Flask command (#1632)

### What problem does this PR solve?
add password reset function by extending the Flask command. #1200 

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
zhuhao
2024-07-23 14:02:41 +08:00
committed by GitHub
parent d2b70e73dd
commit 792a1a9d91
2 changed files with 50 additions and 1 deletions

View File

@ -25,7 +25,7 @@ from flask_cors import CORS
from api.db import StatusEnum
from api.db.db_models import close_connection
from api.db.services import UserService
from api.utils import CustomJSONEncoder
from api.utils import CustomJSONEncoder, commands
from flask_session import Session
from flask_login import LoginManager
@ -60,6 +60,7 @@ Session(app)
login_manager = LoginManager()
login_manager.init_app(app)
commands.register_commands(app)
def search_pages_path(pages_dir):