G Pas
This commit is contained in:
parent
0ca4ddc86d
commit
11e31a62eb
1 changed files with 1 additions and 0 deletions
1
gpas.go
1
gpas.go
|
@ -58,6 +58,7 @@ func passwordLost(user User, config *ConfigFile, ldapConn *ldap.Conn) error {
|
||||||
// Préparation du courriel à envoyer
|
// Préparation du courriel à envoyer
|
||||||
user.Password = suggestPassword()
|
user.Password = suggestPassword()
|
||||||
code := b64.URLEncoding.EncodeToString([]byte(user.UID + ";" + user.Password))
|
code := b64.URLEncoding.EncodeToString([]byte(user.UID + ";" + user.Password))
|
||||||
|
user.DN = "uid=" + user.UID + ",ou=invitations,dc=resdigita,dc=org"
|
||||||
err = passwd(user, config, ldapConn)
|
err = passwd(user, config, ldapConn)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf(fmt.Sprintf("passwordLost : %v", err))
|
log.Printf(fmt.Sprintf("passwordLost : %v", err))
|
||||||
|
|
Loading…
Reference in a new issue