예제 #1
0
        public override void Add(Action <string> output = null, Action <string> error = null)
        {
            Database userDatabase = ServiceTools.GetUserDatabase();
            string   userName     = GetArgument("name", "Please enter the name for the new user");
            string   emailAddress = GetArgument("email", "Please enter the new user's email address");

            User user = User.Create(userName, emailAddress, ServiceTools.ConfirmPasswordPrompt().Sha1());

            output($"*** user created ***\r\n{user.ToYaml()}");
        }