add autologon, + generate password btn peserta dashboard pic

This commit is contained in:
2024-07-13 15:37:44 +07:00
parent 57d160b62a
commit 938e6d60f1
21 changed files with 1412 additions and 198 deletions

View File

@@ -15,6 +15,13 @@ var IsLoggedIn = echojwt.WithConfig(
},
)
var IsAlreadyLogin = echojwt.WithConfig(
echojwt.Config{
SigningKey: []byte("--one_api-secret-2019-04-01"),
ErrorHandler: JWTErrorChecker,
},
)
func JWTErrorChecker(c echo.Context, err error) error {
return c.Redirect(http.StatusTemporaryRedirect, "/login")
}