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

🐛 【忘记密码】发送验证码失败 #320

Open
KolorYan opened this issue Mar 18, 2024 · 4 comments
Open

🐛 【忘记密码】发送验证码失败 #320

KolorYan opened this issue Mar 18, 2024 · 4 comments
Labels
bug Something isn't working Inactive

Comments

@KolorYan
Copy link

您使用的版本? | Your usage version?

v0.5.15

您做了什么操作? | What did you do?

忘记密码

您遇到了什么问题? | What are your problems?

输入邮箱后,点击发送验证码,提示“该用户已离职或者未同步在ldap,无法重置密码,如有疑问,请联系管理员”
所有的账号都不行,非个例

您期望的结果是怎样的? | What is your expected outcome?

成功接收验证码并重置成功

@KolorYan KolorYan added the bug Something isn't working label Mar 18, 2024
@eryajf
Copy link
Owner

eryajf commented Mar 18, 2024

您好 @KolorYan👋,我已收到您的反馈,我将安排时间考虑您提交的信息并进行回复。-- 这条信息是由自动回复的机器人发出的。

Hello @KolorYan. I have received your feedback, and I will arrange time to consider the information you submitted and reply. -- This message is sent by an automatic reply robot.

@eryajf
Copy link
Owner

eryajf commented Mar 18, 2024

判断逻辑在这里:

if user.Status != 1 || user.SyncState != 1 {

可以在库里查一下用户信息,看看这两个字段分别是什么,应该是其中一个状态不满足条件。

@KolorYan
Copy link
Author

判断逻辑在这里:

if user.Status != 1 || user.SyncState != 1 {

可以在库里查一下用户信息,看看这两个字段分别是什么,应该是其中一个状态不满足条件。

sync_state是2,但是为什么是2呢,用户是通过go-ldap-admin后台添加的,但是点击用户列表里的【同步】操作,会提示“SyncUser向LDAP同步用户失败:LDAP Result Code 68 "Entry Already Exists":”

@KolorYan
Copy link
Author

同步操作提示失败可以理解,因为是后台添加的,本身已经在ldap中存在用户了,但是,是不是后台添加的用户已经同步至ldap了,sync_state应该改为1才对

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Inactive
Projects
None yet
Development

No branches or pull requests

2 participants