update goofy error message to be useful

This commit is contained in:
AJ ONeal 2018-06-07 07:35:39 +00:00
parent 46599c864c
commit a9b1c4204b
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ module.exports.authenticate = function (opts) {
return new state.Promise(function (resolve, reject) {
// TODO use global interval whenever the number of active links is high
var t = setTimeout(function () {
console.log("the moon lady wins :-/");
console.log("[Magic Link] Timeout for '" + auth.subject + "'");
delete _auths[id];
var err = new Error("Login Failure: Magic Link was not clicked within 5 minutes");
err.code = 'E_LOGIN_TIMEOUT';