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

关于超级管理员的疑惑 #162

Open
Alvazz opened this issue Sep 22, 2024 · 2 comments
Open

关于超级管理员的疑惑 #162

Alvazz opened this issue Sep 22, 2024 · 2 comments

Comments

@Alvazz
Copy link

Alvazz commented Sep 22, 2024

实际运行了一下代码,发现无法id为root 名称为admin的账号,是写在配置文件里的,而不是放在数据库里的?这样设计的原因是什么啊?感觉写在代码里,怪怪的

@csg2008
Copy link
Contributor

csg2008 commented Sep 23, 2024

看代码的时候也注意到这个现象,从限制admin账号不能修改密码看可能是为了演示站而设计,免的有人改密码后其它人就不能登录看效果。不过自己改一下代码实,改为想要的也简单。

@chris-fung
Copy link

本项目应该没有数据迁移的相关逻辑?找了一圈没找到。这就是数据库里没有初始的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

3 participants