From 5a29a031adbcaca85ad641bf74254d3ea985d03c Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sun, 23 Jul 2023 12:33:17 +0200 Subject: [chore] Admin CLI + new account creation refactoring (#2008) * set maxPasswordLength to 72 bytes, rename validate function * refactor NewSignup * refactor admin account CLI commands * refactor oidc create user * refactor processor create * tweak password change, check old != new password --- internal/api/client/accounts/accountcreate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/api/client/accounts/accountcreate.go') diff --git a/internal/api/client/accounts/accountcreate.go b/internal/api/client/accounts/accountcreate.go index 5999c46c1..c8247ecf2 100644 --- a/internal/api/client/accounts/accountcreate.go +++ b/internal/api/client/accounts/accountcreate.go @@ -129,7 +129,7 @@ func validateCreateAccount(form *apimodel.AccountCreateRequest) error { return err } - if err := validate.NewPassword(form.Password); err != nil { + if err := validate.Password(form.Password); err != nil { return err } -- cgit v1.2.3