-
Notifications
You must be signed in to change notification settings - Fork 451
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
环境设置ROOT_USER为自己的邮箱,登录提示账户状态异常 #475
Comments
应该是新增代码导致的bug, 可以先手动去mongodb的gui,把用户status手动改成0就可以了 |
service\src\storage\mongo.ts userInfo.roles = roles 这个方法错了,if (status !== null),在创建管理员账号的时候,status没有传,status在这里是undefined,双不等号必须要完全不等才算不等,改成!=就可以了 |
一直没来得及看 感谢感谢。提个PR? @MAOUXSAKI |
环境设置ROOT_USER为自己的邮箱,使用此邮箱注册之后登录提示账户状态异常,什么问题?
The text was updated successfully, but these errors were encountered: