mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: modify the error message when registering a Host user (#1804)
* Modify the error message * modify the error message
This commit is contained in:
@@ -101,7 +101,7 @@ func TestSetupServiceCreateUser(t *testing.T) {
|
||||
},
|
||||
`username != "", password == ""`: {
|
||||
hostUsername: expectedCreated.Username,
|
||||
expectedErr: "validate: password is too short, minimum length is 6",
|
||||
expectedErr: "validate: password is too short, minimum length is 3",
|
||||
},
|
||||
"failed to create": {
|
||||
setupStore: func(m *storeMock) {
|
||||
|
Reference in New Issue
Block a user