feat: add IsDemoMode for frontend (#1555)

* feat: add `IsDemoMode` for frontend

* fix: add i18n

* fix: support autologin and go same page

* fix: use i18n for button text
This commit is contained in:
imp2002
2023-02-16 20:36:30 +08:00
committed by GitHub
parent e877045671
commit 14fa914e6f
12 changed files with 82 additions and 1 deletions

View File

@ -57,7 +57,7 @@ func AutoSigninFilter(ctx *context.Context) {
return
}
// "/page?username=abc&password=123"
// "/page?username=built-in/admin&password=123"
userId = ctx.Input.Query("username")
password := ctx.Input.Query("password")
if userId != "" && password != "" && ctx.Input.Query("grant_type") == "" {