1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-15 07:43:27 +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) if(_usingArgs)
{ {
Con.ForegroundColor = ConsoleColor.Red; email = _args[1];
Con.WriteLine("You cannot log in via arguments. Use the console instead."); masterPassword = _args[2];
Con.ResetColor();
return;
} }
else else
{ {
@@ -140,6 +138,8 @@ namespace Bit.Console
Con.WriteLine(result.ErrorMessage); Con.WriteLine(result.ErrorMessage);
Con.ResetColor(); Con.ResetColor();
} }
masterPassword = null;
} }
private static string ReadSecureLine() private static string ReadSecureLine()