mirror of
https://github.com/zotero/zotero.git
synced 2026-10-04 02:31:47 +00:00
Fix infinite spinning on login error in 3.0.9 (from ade715ff0)
This commit is contained in:
parent
4eb2fae0b3
commit
a0f0d52995
1 changed files with 4 additions and 4 deletions
|
|
@ -1284,13 +1284,13 @@ Zotero.Sync.Server = new function () {
|
|||
if (response.firstChild.tagName == 'error') {
|
||||
if (response.firstChild.getAttribute('code') == 'INVALID_LOGIN') {
|
||||
var e = new Zotero.Error(Zotero.getString('sync.error.invalidLogin'), "INVALID_SYNC_LOGIN");
|
||||
_error(e, true);
|
||||
_error(e, false, true);
|
||||
}
|
||||
_error(response.firstChild.firstChild.nodeValue, true);
|
||||
_error(response.firstChild.firstChild.nodeValue, false, true);
|
||||
}
|
||||
|
||||
if (_sessionID) {
|
||||
_error("Session ID already set in Zotero.Sync.Server.login()", true)
|
||||
_error("Session ID already set in Zotero.Sync.Server.login()", false, true)
|
||||
}
|
||||
|
||||
// <response><sessionID>[abcdefg0-9]{32}</sessionID></response>
|
||||
|
|
@ -1299,7 +1299,7 @@ Zotero.Sync.Server = new function () {
|
|||
var re = /^[abcdefg0-9]{32}$/;
|
||||
if (!re.test(_sessionID)) {
|
||||
_sessionID = null;
|
||||
_error('Invalid session ID received from server', true);
|
||||
_error('Invalid session ID received from server', false, true);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue