mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-20 00:31:15 -08:00
Added token generation, user activation command and response.
This commit is contained in:
@@ -70,3 +70,8 @@ QString PasswordHasher::generateRandomSalt(const int len)
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
QString PasswordHasher::generateActivationToken()
|
||||
{
|
||||
return QCryptographicHash::hash(generateRandomSalt().toUtf8(), QCryptographicHash::Md5).toBase64().left(16);
|
||||
}
|
||||
Reference in New Issue
Block a user