We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ced929 commit 9f06b09Copy full SHA for 9f06b09
apiserver/userservice/userimpl.go
@@ -121,6 +121,15 @@ func User(request *msgs.UserRequest) msgs.UserResponse {
121
log.Debug(msg)
122
resp.Results = append(resp.Results, msg)
123
newPassword := util.GeneratePassword(defaultPasswordLength)
124
+ if request.Password != "" {
125
+ parts := strings.Split(request.Password, " ")
126
+ if len(parts) > 1 {
127
+ resp.Status.Code = msgs.Error
128
+ resp.Status.Msg = "invalid password format, can not contain spaces"
129
+ return resp
130
+ }
131
+ newPassword = request.Password
132
133
newExpireDate := GeneratePasswordExpireDate(request.PasswordAgeDays)
134
pgbouncer := cluster.Spec.UserLabels[util.LABEL_PGBOUNCER] == "true"
135
pgpool := cluster.Spec.UserLabels[util.LABEL_PGPOOL] == "true"
0 commit comments