Browse Source

修复ldap,activationCode的bug

tags/v1.0.0
luamas 2 years ago
parent
commit
0d93d485d1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ldap/ldap.go

+ 1
- 1
ldap/ldap.go View File

@@ -52,7 +52,7 @@ func Ldap(w http.ResponseWriter, r *http.Request) {
jsons, _ := json.Marshal(LdapResponse{
Email: username,
RegistrationKey: encodeString,
ActivationCode: "STARTTIMEGMT" + strconv.FormatInt(time.Now().Unix(), 10) + "-" + strconv.FormatInt(time.Now().Unix()+100*365*24*60*60*1000, 10),
ActivationCode: "STARTTIMEGMT" + strconv.FormatInt(time.Now().Unix()*1000, 10) + "-" + strconv.FormatInt(time.Now().Unix()*1000+100*365*24*60*60*1000, 10),
Mold: typeStr,
})



Loading…
Cancel
Save