update goofy error message to be useful

这个提交包含在:
AJ ONeal 2018-06-07 07:35:39 +00:00
父节点 46599c864c
当前提交 a9b1c4204b

查看文件

@ -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';