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

源码安装完的账号密码是啥? #16

Open
MarkHappyShao opened this issue Aug 18, 2020 · 3 comments
Open

源码安装完的账号密码是啥? #16

MarkHappyShao opened this issue Aug 18, 2020 · 3 comments

Comments

@MarkHappyShao
Copy link

源码安装完的admin密码是啥?

@T4di5
Copy link

T4di5 commented Aug 18, 2020

源码安装完的admin密码是啥?

admin!Aa2020

@MarkHappyShao
Copy link
Author

源码安装完的admin密码是啥?

admin!Aa2020

还是是显示账号名或密码错误,配置文件中写入mysql的password字段值是1ceabd2cb3b5ae2f7398cf23749b559e

@CESRC-CreditEase
Copy link
Contributor

CESRC-CreditEase commented Aug 18, 2020

可以用命令初始化数据库,帐号密码admin/admin!Aa2020
python run.py --init=db

logic/util.py 中定义的函数可以自行修改加密方式后进行数据库初始化。其中__conf__.COOKIE_SECRET为配置文件中的内容

def password_md5(o):
    return md5('{}.{}'.format(md5(md5(o.encode()).hexdigest().encode()).hexdigest(),
                                __conf__.COOKIE_SECRET).encode()).hexdigest()

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