Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据库使用sqlite,无法 重置密码 #442

Open
yi4396 opened this issue Jan 22, 2024 · 0 comments
Open

数据库使用sqlite,无法 重置密码 #442

yi4396 opened this issue Jan 22, 2024 · 0 comments

Comments

@yi4396
Copy link

yi4396 commented Jan 22, 2024

使用docker compose 安装的next-terminal,忘记密码之后,按照文档上的说法:使用命令docker exec -it next-terminal sh进入容器,然后执行./next-terminal --reset-password admin,但是不输出重置后的密码。 直接使用初始化密码admin也无法登录。最终解决办法:进入服务器将data/sqlite/next-terminal.db 文件拷贝到本地,使用支持sqlite的编辑器打开,users表对应行的password列,修改值为:$2a$10$VUB9PIPOl8H90K/OLncpDu./B2dKB/oKbnSaqYcITL3Q/pWSGPoLi 。这个就是默认的admin加密后的值,保存后将文件替换到服务器上,记得先备份。这个时候就可以使用admin/admin登录啦,再进入我的资产--个人中心 去修改为其他密码。

jimmysday added a commit to jimmysday/next-terminal that referenced this issue Feb 18, 2024
Reset the password of admin to admin with:
    ./next-termal --reset-password admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant