Change account_generate_email_verification_code() to generate a 6 digit random number between 100000 and 999999
This commit is contained in:
parent
3f803056c4
commit
31d24a3445
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ namespace pvpgn
|
|||
|
||||
static std::random_device rdevice;
|
||||
static std::default_random_engine rengine(rdevice());
|
||||
static std::uniform_int_distribution<unsigned long long> uniform_dist(std::numeric_limits<unsigned long long>::min(), std::numeric_limits<unsigned long long>::max());
|
||||
static std::uniform_int_distribution<unsigned int> uniform_dist(100000, 999999);
|
||||
|
||||
std::time_t expiration = now + (60ull * prefs_get_verify_account_email_expiration());
|
||||
std::string code = fmt::to_string(uniform_dist(rengine));
|
||||
|
|
Loading…
Add table
Reference in a new issue