mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 17:01:24 +12:00
RPCN: Set error state on empty login/password
This commit is contained in:
parent
ab6c74b3c1
commit
caea340985
1 changed files with 8 additions and 1 deletions
|
@ -716,8 +716,15 @@ namespace rpcn
|
||||||
|
|
||||||
bool rpcn_client::login(const std::string& npid, const std::string& password, const std::string& token)
|
bool rpcn_client::login(const std::string& npid, const std::string& password, const std::string& token)
|
||||||
{
|
{
|
||||||
if (npid.empty() || password.empty())
|
if (npid.empty())
|
||||||
{
|
{
|
||||||
|
state = rpcn_state::failure_id_username;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (password.empty())
|
||||||
|
{
|
||||||
|
state = rpcn_state::failure_id_password;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue