1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 16:26:39 +02:00

update the users password after a successful ldap authentication

This commit is contained in:
DukePyrolator
2013-03-03 10:58:39 +01:00
parent 5f74662100
commit 06d43baf93
+3 -1
View File
@@ -113,8 +113,10 @@ class IdentifyInterface : public LDAPInterface
ii->user->SendMessage(NickServ, _("Your account \002%s\002 has been successfully created."), na->nick.c_str());
}
}
na->nc->Extend("m_ldap_authentication_dn", new ExtensibleItemClass<Anope::string>(ii->dn));
// encrypt and store the password in the nickcore
Anope::Encrypt(ii->req->GetPassword(), na->nc->pass);
na->nc->Extend("m_ldap_authentication_dn", new ExtensibleItemClass<Anope::string>(ii->dn));
ii->req->Success(me);
}
break;