diff --git a/data/model/appspecifictoken.py b/data/model/appspecifictoken.py index 282fa458c..6b0921bd0 100644 --- a/data/model/appspecifictoken.py +++ b/data/model/appspecifictoken.py @@ -60,7 +60,8 @@ def get_expiring_tokens(user, soon): return (AppSpecificAuthToken .select() .where(AppSpecificAuthToken.user == user, - AppSpecificAuthToken.expiration <= soon_datetime)) + AppSpecificAuthToken.expiration <= soon_datetime, + AppSpecificAuthToken.expiration > datetime.now())) def gc_expired_tokens(user): diff --git a/static/directives/quay-message-bar.html b/static/directives/quay-message-bar.html index ccf3ca2ce..bc40929f1 100644 --- a/static/directives/quay-message-bar.html +++ b/static/directives/quay-message-bar.html @@ -2,7 +2,7 @@
Your external application token {{ token.title }} - will be expiring . + will be expiring in . Please create a new token and revoke this token in user settings.