Created
April 2, 2015 20:18
-
-
Save olore/98e8f19db2936a5a92e1 to your computer and use it in GitHub Desktop.
what i do - after
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (dateHasPassed(expectedLogoutDate)) { | |
logger.info('timeout service - openDialog called but past logout time'); | |
sessionStoreService.ensureSessionIsValid(); | |
return $q.reject(); | |
} | |
function dateHasPassed(date) { | |
return moment().isAfter(moment(date)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment