未验证 提交 2e7a2a07 编写于 作者: Y ysicing 提交者: GitHub

fix: ldap登录如果配置允许coverAttributes,会导致panic (#454)

fix #453
Signed-off-by: Nysicing <i@ysicing.me>
上级 36e11977
......@@ -112,7 +112,7 @@ func LdapLogin(user, pass string) (*User, error) {
if has {
if config.Config.LDAP.CoverAttributes {
_, err := DB["rdb"].Where("id=?", u.Id).Update(u)
return nil, err
return &u, err
} else {
return &u, err
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册