From e2c2ea6bfd3c4d2014a76fd2421c046bec9f0d84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E4=B8=AB=E8=AE=B2=E6=A2=B5?= Date: Tue, 14 May 2024 22:15:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BD=93=E7=94=A8=E6=88=B7=E7=AD=96?= =?UTF-8?q?=E7=95=A5=E4=B8=BAclear=E6=97=B6,=E5=AD=98=E5=85=A5=E5=8E=9F?= =?UTF-8?q?=E6=96=87=20(#341)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/ildap/user_ildap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/ildap/user_ildap.go b/service/ildap/user_ildap.go index 362235f..6ff876a 100644 --- a/service/ildap/user_ildap.go +++ b/service/ildap/user_ildap.go @@ -31,7 +31,7 @@ func (x UserService) Add(user *model.User) error { add.Attribute("uid", []string{user.Username}) var pass string if config.Conf.Ldap.UserPasswordEncryptionType == "clear" { - pass = user.Password + pass = tools.NewParPasswd(user.Password) } else { pass = tools.EncodePass([]byte(tools.NewParPasswd(user.Password))) }