feat(authctl): support password reset
This commit is contained in:
@@ -17,7 +17,7 @@ const (
|
||||
MaxUsernameBytes = 128
|
||||
MaxDeviceNameBytes = 128
|
||||
MaxVersionBytes = 128
|
||||
MinPasswordBytes = 6
|
||||
MinPasswordBytes = 5
|
||||
MaxPasswordBytes = 72
|
||||
)
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ func TestNormalizeUsernameAndValidateUserInput(t *testing.T) {
|
||||
}{
|
||||
"blank username": {" ", "password", UserRoleAdmin},
|
||||
"blank password": {"admin", "", UserRoleAdmin},
|
||||
"short password": {"admin", "short", UserRoleAdmin},
|
||||
"short password": {"admin", "tiny", UserRoleAdmin},
|
||||
"invalid password UTF-8": {
|
||||
"admin",
|
||||
string([]byte{0xff, 0xfe, 0xfd}),
|
||||
|
||||
Reference in New Issue
Block a user