Set "BNET\\acct\\email\\verified" attribute to false whenever email address is changed for an account

This commit is contained in:
relesgoe 2020-05-22 02:49:44 -07:00
parent c81448e2b9
commit c7387d83c9
2 changed files with 9 additions and 0 deletions

View file

@ -874,7 +874,10 @@ namespace pvpgn
eventlog(eventlog_level_debug, __FUNCTION__, "WOLHASH: {}", wol_pass_hash);
account_set_wol_apgar(tempacct, wol_pass_hash);
if (apiregmember_get_email(apiregmember))
{
account_set_email_verified(account, false);
account_set_email(tempacct, apiregmember_get_email(apiregmember));
}
std::snprintf(message, sizeof(message), "Welcome in the amazing world of PvPGN! Your login can be used for all PvPGN Supported games!");
std::snprintf(hresult, sizeof(hresult), "0");
}

View file

@ -5442,7 +5442,10 @@ namespace pvpgn
return 0;
}
else
{
account_set_email_verified(account, false);
eventlog(eventlog_level_info, __FUNCTION__, "[{}] init account \"{}\" email to \"{}\"", conn_get_socket(c), account_get_name(account), email);
}
return 0;
}
@ -5487,7 +5490,10 @@ namespace pvpgn
return 0;
}
else
{
account_set_email_verified(account, false);
eventlog(eventlog_level_info, __FUNCTION__, "[{}] change account \"{}\" email to \"{}\"", conn_get_socket(c), account_get_name(account), newaddr);
}
return 0;
}