mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fixed crash on empty password for CredentialsLoginVM
This commit is contained in:
parent
a8e62d3c40
commit
519c9327ef
@ -34,6 +34,12 @@ namespace Wabbajack
|
|||||||
|
|
||||||
public void Login(SecureString password)
|
public void Login(SecureString password)
|
||||||
{
|
{
|
||||||
|
if (password == null || password.Length == 0)
|
||||||
|
{
|
||||||
|
ReturnMessage = new LoginReturnMessage("You need to input a password!", true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ReturnMessage = _downloader.LoginWithCredentials(Username, password);
|
ReturnMessage = _downloader.LoginWithCredentials(Username, password);
|
||||||
password.Clear();
|
password.Clear();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user