fixed: passwd winix function: pass_encrypted was not cleared if we are not using rsa for encrypting passwords anymore

This commit is contained in:
Tomasz Sowa 2021-05-13 02:02:15 +02:00
parent 801c9a2cda
commit 031e673c51
1 changed files with 4 additions and 1 deletions

View File

@ -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)
{
user.pass_type = config->pass_type;
ClearString(user.pass_encrypted);
empty.clear();
if( config->pass_hash_use_salt && !config->pass_hash_salt.empty() )