Example #1
0
        /// <summary>
        /// Create a simple password option
        /// </summary>
        /// <returns>A simple password string</returns>
        public string SimplePassword()
        {
            var requirements = new PasswordRequirements
            {
                MinLength = 8,
                MaxLength = 10
            };

            return(_passwordGenerator.GeneratePassword(requirements));
        }
Example #2
0
 private async void RegeneratePassword()
 {
     SelectedPasswordGenerator = await _passwordGeneratorService.GeneratePassword(SelectedPasswordGenerator);
 }
 public PartialViewResult Password()
 {
     ViewData["Password"] = _passwordGenerator.GeneratePassword();
     return(PartialView("_Password"));
 }