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 87b1ae8 commit e389ae5Copy full SHA for e389ae5
internal/namespaces/rdb/v1/custom_user.go
@@ -2,6 +2,7 @@ package rdb
2
3
import (
4
"context"
5
+ "errors"
6
"fmt"
7
"reflect"
8
@@ -183,6 +184,12 @@ func userUpdateBuilder(c *core.Command) *core.Command {
183
184
fmt.Printf("\n")
185
}
186
187
+ if !customRequest.GeneratePassword && customRequest.Password == nil {
188
+ return nil, errors.New(
189
+ "you must provide a password when generate-password is set to false",
190
+ )
191
+ }
192
+
193
user, err := api.UpdateUser(updateUserRequest)
194
if err != nil {
195
return nil, err
0 commit comments