mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
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:
@ -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") == "" {
|
||||
|
Reference in New Issue
Block a user