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.warn('Github OAuth but no logged-in user')
143
-
req.flash('account',"Cannot link a github account if you aren't logged in")
144
-
returndone()
145
+
console.warn('Github OAuth but no logged-in user');
146
+
req.flash('account','Cannot link a github account if you aren\'t logged in');
147
+
returndone();
145
148
}
146
-
varaccount=req.user.account('github',profile.id)
149
+
150
+
varaccount=req.user.account('github',profile.id);
151
+
147
152
if(account){
148
-
console.warn("Trying to attach a github account that's already attached...")
149
-
req.flash('account','That github account is already linked. <a target="_blank" href="https://github.com/logout">Sign out of github</a> before you click "Add Account"')
150
-
returndone(null,req.user)
153
+
console.warn('Trying to attach a github account that\'s already attached...');
154
+
req.flash('account','That github account is already linked. <a target="_blank" href="https://github.com/logout">Sign out of github</a> before you click "Add Account"');
0 commit comments