forked from forgejo/forgejo
User Settings: Ignore empty language codes & validate (#13755)
This commit is contained in:
parent
3512c7e40f
commit
48a3bb7a32
6 changed files with 15 additions and 6 deletions
|
@ -45,7 +45,7 @@ func testPrivateActivityHelperEnablePrivateActivity(t *testing.T) {
|
|||
"_csrf": GetCSRF(t, session, "/user/settings"),
|
||||
"name": privateActivityTestUser,
|
||||
"email": privateActivityTestUser + "@example.com",
|
||||
"language": "en-us",
|
||||
"language": "en-US",
|
||||
"keep_activity_private": "1",
|
||||
})
|
||||
session.MakeRequest(t, req, http.StatusFound)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue