🐛 【忘记密码】发送验证码失败
KolorYan opened this issue · comments
KolorYan commented
您使用的版本? | Your usage version?
v0.5.15
您做了什么操作? | What did you do?
忘记密码
您遇到了什么问题? | What are your problems?
输入邮箱后,点击发送验证码,提示“该用户已离职或者未同步在ldap,无法重置密码,如有疑问,请联系管理员”
所有的账号都不行,非个例
您期望的结果是怎样的? | What is your expected outcome?
成功接收验证码并重置成功
二丫讲梵 commented
二丫讲梵 commented
判断逻辑在这里:
go-ldap-admin/logic/base_logic.go
Line 31 in 02638f2
可以在库里查一下用户信息,看看这两个字段分别是什么,应该是其中一个状态不满足条件。
KolorYan commented
判断逻辑在这里:
go-ldap-admin/logic/base_logic.go
Line 31 in 02638f2
可以在库里查一下用户信息,看看这两个字段分别是什么,应该是其中一个状态不满足条件。
sync_state是2,但是为什么是2呢,用户是通过go-ldap-admin后台添加的,但是点击用户列表里的【同步】操作,会提示“SyncUser向LDAP同步用户失败:LDAP Result Code 68 "Entry Already Exists":”
KolorYan commented
同步操作提示失败可以理解,因为是后台添加的,本身已经在ldap中存在用户了,但是,是不是后台添加的用户已经同步至ldap了,sync_state应该改为1才对