]> source.dussan.org Git - gitea.git/commit
Add some tests to clarify the "must-change-password" behavior (#30693)
authorwxiaoguang <wxiaoguang@gmail.com>
Sat, 27 Apr 2024 12:23:37 +0000 (20:23 +0800)
committerGitHub <noreply@github.com>
Sat, 27 Apr 2024 12:23:37 +0000 (12:23 +0000)
commitd3cdef88ad4784c19afcf24fbf62fccb03f456ba
tree18e3a95c19b898202515227352e05b5ea2675c5b
parentdd301cae1c40c9ef2805bd13af6b09a81ff4f5d7
Add some tests to clarify the "must-change-password" behavior (#30693)

Follow  #30472:

When a user is created by command line `./gitea admin user create`:

Old behavior before #30472: the first user (admin or non-admin) doesn't
need to change password.

Revert to the old behavior before #30472
cmd/admin_user_change_password.go
cmd/admin_user_create.go
cmd/admin_user_create_test.go [new file with mode: 0644]
cmd/main.go
cmd/main_test.go
main.go
models/unittest/testdb.go
modules/log/logger_global.go
tests/test_utils.go