diff --git a/src/Actions/Users.cs b/src/Actions/Users.cs index 7f8a24e..01d8c8b 100644 --- a/src/Actions/Users.cs +++ b/src/Actions/Users.cs @@ -250,6 +250,17 @@ namespace amecs.Actions var password = new InputPrompt() { MaskInput = true, Text = "\r\nEnter password for new user, or press\r\nescape to quit: " }.Start(); if (password == null) return false; + + var passwordConfirmation = new InputPrompt() { MaskInput = true, Text = "\r\nRe-enter your password, or press\r\nescape to quit: " }.Start(); + if (passwordConfirmation == null) + return false; + + if (password != passwordConfirmation) + { + ConsoleTUI.OpenFrame.WriteLine("The password re-entered does not match your original password."); + Console.WriteLine(); + continue; + } try { diff --git a/src/amecs.csproj b/src/amecs.csproj index 5dd6548..ee04ded 100644 --- a/src/amecs.csproj +++ b/src/amecs.csproj @@ -5,6 +5,7 @@ app.manifest amecs.ico + true Debug @@ -39,7 +40,6 @@ prompt 4 false - true