fixed: passwd winix function: pass_encrypted was not cleared if we are not using rsa for encrypting passwords anymore
This commit is contained in:
parent
801c9a2cda
commit
031e673c51
|
@ -335,10 +335,13 @@ void Crypt::PassHashCrypt(const std::wstring & salt, const std::wstring & path_t
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* we hashing user.password, may it would be better to get the password as a seperate argument?
|
||||||
|
*/
|
||||||
void Crypt::PassHashCrypt(User & user)
|
void Crypt::PassHashCrypt(User & user)
|
||||||
{
|
{
|
||||||
user.pass_type = config->pass_type;
|
user.pass_type = config->pass_type;
|
||||||
|
ClearString(user.pass_encrypted);
|
||||||
empty.clear();
|
empty.clear();
|
||||||
|
|
||||||
if( config->pass_hash_use_salt && !config->pass_hash_salt.empty() )
|
if( config->pass_hash_use_salt && !config->pass_hash_salt.empty() )
|
||||||
|
|
Loading…
Reference in New Issue