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