diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-04-27 20:23:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-27 12:23:37 +0000 |
commit | d3cdef88ad4784c19afcf24fbf62fccb03f456ba (patch) | |
tree | 18e3a95c19b898202515227352e05b5ea2675c5b /main.go | |
parent | dd301cae1c40c9ef2805bd13af6b09a81ff4f5d7 (diff) | |
download | gitea-d3cdef88ad4784c19afcf24fbf62fccb03f456ba.tar.gz gitea-d3cdef88ad4784c19afcf24fbf62fccb03f456ba.zip |
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
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -42,7 +42,7 @@ func main() { log.GetManager().Close() os.Exit(code) } - app := cmd.NewMainApp(Version, formatBuiltWith()) + app := cmd.NewMainApp(cmd.AppVersion{Version: Version, Extra: formatBuiltWith()}) _ = cmd.RunMainApp(app, os.Args...) // all errors should have been handled by the RunMainApp log.GetManager().Close() } |