Ejemplo n.º 1
0
        /// <summary>
        /// Allows user to regsiter
        /// </summary>
        /// <param name="username">User input for username</param>
        /// <param name="password">User input for password</param>
        public void Register(string username, string password)
        {
            var userSuccess = _credentialManager.CreateUser(username, password);

            if (userSuccess)
            {
                _status = AppStatus.UserActions;
                _output.Send("Registration Successful");
                Thread.Sleep(1500);
                Console.Clear();
            }
            else
            {
                Console.Clear();
                _output.Send("INFO: Your selected username already exists. Please select a different username.");
            }
        }