Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Remember me backend #14

Closed
wants to merge 3 commits into from
Closed

Remember me backend #14

wants to merge 3 commits into from

Conversation

clovertera
Copy link
Contributor

change JWTExpireSeconds based on new remember variable in schema auth, which user will change in frontend by checkbox

@clovertera clovertera closed this Mar 19, 2024
@clovertera clovertera linked an issue Mar 19, 2024 that may be closed by this pull request
@@ -70,6 +74,11 @@ func Login(c *fiber.Ctx) error {
"msg": err.Error(),
})
}
if !login.Remember {
config.Conf.JWTExpireSeconds = 1800
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should add a new parameter for JWTExpireSeconds, this conf change will affect all the users.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants