Add admin reset-password command

Features:
- Add admin reset-password command to reset user passwords
- Support SQLite, PostgreSQL, and MySQL databases
- Use scrypt hashing compatible with CodiMD
- Update README with reset-password usage examples
This commit is contained in:
2026-04-07 12:27:23 +08:00
parent 1df784ec7c
commit 8575d7631f
4 changed files with 273 additions and 4 deletions

View File

@@ -31,6 +31,9 @@ setup(
"requests-mock>=1.9.0",
"pytest-subprocess>=1.5.0",
],
"admin": [
"scrypt>=0.8.0",
],
},
entry_points={
"console_scripts": [