summaryrefslogtreecommitdiffstats
path: root/routers/admin/users_test.go
diff options
context:
space:
mode:
authorguillep2k <18600385+guillep2k@users.noreply.github.com>2019-10-16 00:09:58 -0300
committerLunny Xiao <xiaolunwen@gmail.com>2019-10-16 11:09:58 +0800
commit31655aabfc397db203d39b468cad1ecbdc1879db (patch)
tree07bb7133bb4ff74a96abf4c3ab1587e27fdf1298 /routers/admin/users_test.go
parent66e99d722a71d12b81264bc3577b85febe40e49e (diff)
downloadgitea-31655aabfc397db203d39b468cad1ecbdc1879db.tar.gz
gitea-31655aabfc397db203d39b468cad1ecbdc1879db.zip
Fix password complexity regex for special characters (on master) (#8525)
* Fix extra space * Fix regular expression * Fix error template name * Simplify check code, fix default values, add test * Fix router tests * Fix fmt * Fix setting and lint * Move cleaning up code to test, improve comments * Tidy up variable declaration
Diffstat (limited to 'routers/admin/users_test.go')
-rw-r--r--routers/admin/users_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/admin/users_test.go b/routers/admin/users_test.go
index e054524fd1..2b36b45d49 100644
--- a/routers/admin/users_test.go
+++ b/routers/admin/users_test.go
@@ -34,7 +34,7 @@ func TestNewUserPost_MustChangePassword(t *testing.T) {
LoginName: "local",
UserName: username,
Email: email,
- Password: "xxxxxxxx",
+ Password: "abc123ABC!=$",
SendNotify: false,
MustChangePassword: true,
}
@@ -71,7 +71,7 @@ func TestNewUserPost_MustChangePasswordFalse(t *testing.T) {
LoginName: "local",
UserName: username,
Email: email,
- Password: "xxxxxxxx",
+ Password: "abc123ABC!=$",
SendNotify: false,
MustChangePassword: false,
}