mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-24 08:20:31 +08:00
fix: IsTokenExpired function adjustment (#475)
* fix: IsTokenExpired function adjustment Signed-off-by: Steve0x2a <stevesough@gmail.com> * fix: tokenExpired err Signed-off-by: Steve0x2a <stevesough@gmail.com>
This commit is contained in:
parent
63161d6135
commit
256b433e57
@ -40,7 +40,7 @@ func AutoSigninFilter(ctx *context.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if !util.IsTokenExpired(token.CreatedTime, token.ExpiresIn) {
|
if util.IsTokenExpired(token.CreatedTime, token.ExpiresIn) {
|
||||||
responseError(ctx, "Access token has expired")
|
responseError(ctx, "Access token has expired")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user