mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 21:30:24 +08:00
fix: refactor functions and code (#1559)
This commit is contained in:
@ -329,7 +329,7 @@ func GetLdaps(owner string) []*Ldap {
|
||||
}
|
||||
|
||||
func GetLdap(id string) *Ldap {
|
||||
if util.IsStrsEmpty(id) {
|
||||
if util.IsStringsEmpty(id) {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -122,11 +122,8 @@ func AddToVerificationRecord(user *User, provider *Provider, remoteAddr, recordT
|
||||
record.Owner = provider.Owner
|
||||
record.Name = util.GenerateId()
|
||||
record.CreatedTime = util.GetCurrentTime()
|
||||
if user != nil {
|
||||
record.User = user.GetId()
|
||||
}
|
||||
record.Provider = provider.Name
|
||||
|
||||
record.Provider = provider.Name
|
||||
record.Receiver = dest
|
||||
record.Code = code
|
||||
record.Time = time.Now().Unix()
|
||||
|
Reference in New Issue
Block a user