From 2767ed9d96b0c11f1c8d9a16c71f0201a4f5d0b6 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 12 May 2017 10:26:13 -0400 Subject: [PATCH] allow args login --- src/Console/Program.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Console/Program.cs b/src/Console/Program.cs index c23611b0..e42951a4 100644 --- a/src/Console/Program.cs +++ b/src/Console/Program.cs @@ -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()