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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user