aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-04-27 20:23:37 +0800
committerGitHub <noreply@github.com>2024-04-27 12:23:37 +0000
commitd3cdef88ad4784c19afcf24fbf62fccb03f456ba (patch)
tree18e3a95c19b898202515227352e05b5ea2675c5b /main.go
parentdd301cae1c40c9ef2805bd13af6b09a81ff4f5d7 (diff)
downloadgitea-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.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 775c729c56..756c3e0f9b 100644
--- a/main.go
+++ b/main.go
@@ -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()
}