mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
🔥🐎 password never initilized if username isnt admin
This commit is contained in:
parent
1b950ce0c0
commit
fd657dd9bf
1 changed files with 1 additions and 1 deletions
|
|
@ -21,9 +21,9 @@ void AdminFilter::doFilter(const HttpRequestPtr &req,
|
|||
if (middle != std::string::npos)
|
||||
{
|
||||
std::string_view username = results_view.substr(0, middle);
|
||||
std::string_view password = results_view.substr(middle + 1);
|
||||
if (bank.AdminVerifyAccount(username))
|
||||
{
|
||||
std::string_view password = results_view.substr(middle + 1);
|
||||
if (bank.VerifyPassword(username, password))
|
||||
{
|
||||
fccb();
|
||||
|
|
|
|||
Loading…
Reference in a new issue