Esempio n. 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));
        }
Esempio n. 2
0
 private async void RegeneratePassword()
 {
     SelectedPasswordGenerator = await _passwordGeneratorService.GeneratePassword(SelectedPasswordGenerator);
 }
Esempio n. 3
0
 public PartialViewResult Password()
 {
     ViewData["Password"] = _passwordGenerator.GeneratePassword();
     return(PartialView("_Password"));
 }