diff --git a/deployments/templates/config.yaml b/deployments/templates/config.yaml index 798677027..ba3d184ed 100644 --- a/deployments/templates/config.yaml +++ b/deployments/templates/config.yaml @@ -103,7 +103,7 @@ verifyCode: smtpPort: 465 # SMTP server port for email sending # Proxy header configuration for IP extraction -proxyHeader: "X-Forwarded-For" # PROXY_HEADER, Header used for extracting the client IP address +# proxyHeader: "X-Forwarded-For" # PROXY_HEADER, Header used for extracting the client IP address # List of admin users adminList: @@ -118,7 +118,7 @@ adminList: imAdmin: openIMAdmin # URL for OpenIM server -openIMUrl: "172.28.0.1:10002" # OPENIM_SERVER_ADDRESS:API_OPENIM_PORT, URL of the OpenIM server +openIMUrl: "http://127.0.0.1:10002" # OPENIM_SERVER_ADDRESS:API_OPENIM_PORT, URL of the OpenIM server # Redis configuration - used for caching and session management redis: diff --git a/internal/rpc/admin/admin.go b/internal/rpc/admin/admin.go index 6d41a9842..4e28b980e 100644 --- a/internal/rpc/admin/admin.go +++ b/internal/rpc/admin/admin.go @@ -130,7 +130,7 @@ func (o *adminServer) AddAdminAccount(ctx context.Context, req *admin.AddAdminAc adm := &admin2.Admin{ Account: req.Account, - Password: o.passwordEncryption(req.Password), + Password: req.Password, FaceURL: req.FaceURL, Nickname: req.Nickname, UserID: o.genUserID(), @@ -233,7 +233,7 @@ func (o *adminServer) Login(ctx context.Context, req *admin.LoginReq) (*admin.Lo } return nil, err } - if a.Password != o.passwordEncryption(req.Password) { + if a.Password != req.Password { return nil, eerrs.ErrPassword.Wrap() } adminToken, err := o.CreateToken(ctx, &admin.CreateTokenReq{UserID: a.UserID, UserType: constant.AdminUser})