Fix error message printed in the console for unregistered users
parent
8c61e3b9c4
commit
e80edd4a0b
|
@ -2082,6 +2082,11 @@ define([
|
||||||
loadUniversal(Team, 'team', waitFor);
|
loadUniversal(Team, 'team', waitFor);
|
||||||
cleanFriendRequests();
|
cleanFriendRequests();
|
||||||
}).nThen(function () {
|
}).nThen(function () {
|
||||||
|
var requestLogin = function () {
|
||||||
|
broadcast([], "REQUEST_LOGIN");
|
||||||
|
};
|
||||||
|
|
||||||
|
if (store.loggedIn) {
|
||||||
arePinsSynced(function (err, yes) {
|
arePinsSynced(function (err, yes) {
|
||||||
if (!yes) {
|
if (!yes) {
|
||||||
resetPins(function (err) {
|
resetPins(function (err) {
|
||||||
|
@ -2091,11 +2096,6 @@ define([
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var requestLogin = function () {
|
|
||||||
broadcast([], "REQUEST_LOGIN");
|
|
||||||
};
|
|
||||||
|
|
||||||
if (store.loggedIn) {
|
|
||||||
/* This isn't truly secure, since anyone who can read the user's object can
|
/* This isn't truly secure, since anyone who can read the user's object can
|
||||||
set their local loginToken to match that in the object. However, it exposes
|
set their local loginToken to match that in the object. However, it exposes
|
||||||
a UI that will work most of the time. */
|
a UI that will work most of the time. */
|
||||||
|
|
Loading…
Reference in New Issue