mirror of
https://github.com/distribution/distribution
synced 2024-11-12 05:45:51 +01:00
Print the correct token expiration time
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
This commit is contained in:
parent
6c135e03ce
commit
091c12f86b
@ -285,9 +285,9 @@ func (th *tokenHandler) fetchToken(params map[string]string) (token *tokenRespon
|
||||
}
|
||||
|
||||
if tr.ExpiresIn < minimumTokenLifetimeSeconds {
|
||||
logrus.Debugf("Increasing token expiration to: %d seconds", tr.ExpiresIn)
|
||||
// The default/minimum lifetime.
|
||||
tr.ExpiresIn = minimumTokenLifetimeSeconds
|
||||
logrus.Debugf("Increasing token expiration to: %d seconds", tr.ExpiresIn)
|
||||
}
|
||||
|
||||
if tr.IssuedAt.IsZero() {
|
||||
|
Loading…
Reference in New Issue
Block a user