You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log("called topcoder api for role: response status - ",response.statusCode);
33
-
if(err)returncallback(err,user,context);
34
-
if(response.statusCode!==200){
35
-
returncallback('Login Error: Whoops! Something went wrong. Looks like your registered email has discrepancy with Authentication. Please connect to our support <a href="mailto:[email protected]">[email protected]</a>. Back to application ',user,context);
36
-
}
37
-
38
-
letres=JSON.parse(body);
39
-
// TODO need to double sure about multiple result or no result
console.log("called topcoder api for role: response status - ",response.statusCode);
33
+
if(err)returncallback(err,user,context);
34
+
if(response.statusCode!==200){
35
+
returncallback('Login Error: Whoops! Something went wrong. Looks like your registered email has discrepancy with Authentication. Please connect to our support <a href="mailto:[email protected]">[email protected]</a>. Back to application ',user,context);
36
+
}
37
+
38
+
letres=JSON.parse(body);
39
+
// TODO need to double sure about multiple result or no result
returncallback('Login Alert: Please verify your email first! Please connect to our support <a href="mailto:[email protected]">[email protected]</a>. Back to application ',user,context);
returncallback("Something went worng!. Please retry.",user,context);
73
-
}
74
-
}else{
75
-
// for other apps do nothing
76
-
returncallback(null,user,context);
77
-
}
63
+
}
64
+
if(!userStatus&&context.login_counts>1){
65
+
returncallback('Login Alert: Please verify your email first! Please connect to our support <a href="mailto:[email protected]">[email protected]</a>. Back to application ',user,context);
66
+
}
67
+
returncallback(null,user,context);
68
+
}
69
+
);
70
+
}catch(e){
71
+
console.log("Error in calling user roles"+e);
72
+
returncallback("Something went worng!. Please retry.",user,context);
0 commit comments