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

Commit

Permalink
Merge pull request #2991 from mozilla/log-expiration
Browse files Browse the repository at this point in the history
We should log expiration issues. A root cause of Issue #2985
  • Loading branch information
ozten committed Feb 5, 2013
2 parents 360d0eb + debc603 commit d110185
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion resources/static/common/js/user.js
Expand Up @@ -45,7 +45,13 @@ BrowserID.User = (function() {

// or if it was issued before the last time the domain key
// was updated, it's invalid
if (!cert.payload.iat || cert.payload.iat < creationTime) {
if (!cert.payload.iat) {
helpers.log('Data Format ERROR: expected cert to have iat ' +
'property, but found none, marking expired');
return true;
} else if (cert.payload.iat < creationTime) {
helpers.log('Certificate issued ' + cert.payload.iat +
' is before creation time ' + creationTime + ', marking expired');
return true;
}

Expand Down

0 comments on commit d110185

Please sign in to comment.