Initial check in of roles work in the store. Not currently functional

This commit is contained in:
Emma Garland
2021-01-29 16:43:50 +00:00
parent af07790528
commit 8caf2a0e62
8 changed files with 152 additions and 39 deletions

View File

@@ -102,12 +102,9 @@ namespace Umbraco.Infrastructure.Security
/// <returns>The generated password</returns>
public string GeneratePassword()
{
if (_passwordGenerator == null)
{
_passwordGenerator = new PasswordGenerator(PasswordConfiguration);
}
_passwordGenerator ??= new PasswordGenerator(PasswordConfiguration);
var password = _passwordGenerator.GeneratePassword();
string password = _passwordGenerator.GeneratePassword();
return password;
}