mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Fix for logout/re-login (no, really!)
This commit is contained in:
parent
b3416e9ffb
commit
4f34719f28
@ -1622,10 +1622,9 @@ DAVCollection.prototype = {
|
||||
},
|
||||
|
||||
// FIXME: should we regen this each time to prevent it from staying in memory?
|
||||
__authURI: null,
|
||||
__auth: null,
|
||||
get _auth() {
|
||||
if (this.__auth && this._userURL == this.__authURI)
|
||||
if (this.__auth)
|
||||
return this.__auth;
|
||||
|
||||
try {
|
||||
@ -1787,6 +1786,8 @@ DAVCollection.prototype = {
|
||||
|
||||
this._log.info("Logging in");
|
||||
|
||||
this._userURL = this._baseURL; // for createAcct.php
|
||||
|
||||
// This ensures the auth header is correct, and it doubles as an
|
||||
// account creation request
|
||||
let gen = this.GET("createAcct.php", cont);
|
||||
|
Loading…
Reference in New Issue
Block a user