internal/config/template: Cleanup

This commit cleans up the internal/config/template to remove code no
longer used because of the new configuration.
This commit is contained in:
Tom Wiesing 2023-02-26 10:44:25 +01:00
parent aa3580c248
commit 2edd0f2fe2
No known key found for this signature in database
7 changed files with 66 additions and 69 deletions

View file

@ -9,5 +9,5 @@ import (
// NewPassword returns a new password using the password settings from this configuration
func (cfg Config) NewPassword() (string, error) {
return password.Generate(rand.Reader, cfg.PasswordLength, passwordx.Charset)
return password.Generate(rand.Reader, cfg.PasswordLength, passwordx.Safe)
}