Merge pull request #757 from erri120/mega-empty-password-fix

Fixed crash on empty password for CredentialsLoginVM
This commit is contained in:
Timothy Baldridge 2020-04-26 22:59:48 -06:00 committed by GitHub
commit 9b71e1b644
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,12 @@ namespace Wabbajack
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);
password.Clear();
}