1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-13 23:03:19 +00:00

allow args login

This commit is contained in:
Kyle Spearrin
2017-05-12 10:26:13 -04:00
parent fa743815f8
commit 2767ed9d96

View File

@@ -101,10 +101,8 @@ namespace Bit.Console
if(_usingArgs)
{
Con.ForegroundColor = ConsoleColor.Red;
Con.WriteLine("You cannot log in via arguments. Use the console instead.");
Con.ResetColor();
return;
email = _args[1];
masterPassword = _args[2];
}
else
{
@@ -140,6 +138,8 @@ namespace Bit.Console
Con.WriteLine(result.ErrorMessage);
Con.ResetColor();
}
masterPassword = null;
}
private static string ReadSecureLine()