mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Core/Commands: Fixing some problems with .account email
This commit is contained in:
@@ -362,9 +362,9 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
char* oldEmail = strtok(NULL, " ");
|
||||
char* oldEmail = strtok((char*)args, " ");
|
||||
char* password = strtok(NULL, " ");
|
||||
char* email = strtok((char*)args, " ");
|
||||
char* email = strtok(NULL, " ");
|
||||
char* emailConfirmation = strtok(NULL, " ");
|
||||
|
||||
if (!oldEmail || !password || !email || !emailConfirmation)
|
||||
@@ -467,6 +467,7 @@ public:
|
||||
handler->GetSession()->GetAccountId(), handler->GetSession()->GetRemoteAddress().c_str(),
|
||||
handler->GetSession()->GetPlayer()->GetName().c_str(), handler->GetSession()->GetPlayer()->GetGUIDLow(),
|
||||
handler->HasPermission(RBAC_PERM_EMAIL_CONFIRM_FOR_PASS_CHANGE) ? "Yes" : "No");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!AccountMgr::CheckPassword(handler->GetSession()->GetAccountId(), std::string(oldPassword)))
|
||||
@@ -488,6 +489,7 @@ public:
|
||||
handler->GetSession()->GetAccountId(), handler->GetSession()->GetRemoteAddress().c_str(),
|
||||
handler->GetSession()->GetPlayer()->GetName().c_str(), handler->GetSession()->GetPlayer()->GetGUIDLow(),
|
||||
emailConfirmation);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (strcmp(newPassword, passwordConfirmation) != 0)
|
||||
|
||||
Reference in New Issue
Block a user