mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
added wizard to setup service and get login information for new users
updated server pointers to point to the new services.mozilla.com backend
This commit is contained in:
parent
afd2a6c01f
commit
c1801bee80
@ -1120,7 +1120,7 @@ DAVCollection.prototype = {
|
||||
'Use your ldap username/password - dotmoz');
|
||||
LOG("Found " + logins.length + " logins");
|
||||
|
||||
for (let i = 0; i < logins.length; i++) {
|
||||
for (let i = 0; i < logins.length; i++) {
|
||||
if (logins[i].username == username) {
|
||||
password = logins[i].password;
|
||||
break;
|
||||
@ -1154,14 +1154,30 @@ DAVCollection.prototype = {
|
||||
}
|
||||
|
||||
// fixme: hacktastic
|
||||
let hello = /Hello (.+)@mozilla.com/.exec(event.target.responseText)
|
||||
if (hello) {
|
||||
this._currentUserPath = hello[1];
|
||||
this._currentUser = this._currentUserPath + "@mozilla.com";
|
||||
this._baseURL = "http://dotmoz.mozilla.org/~" +
|
||||
this._currentUserPath + "/";
|
||||
}
|
||||
// let hello = /Hello (.+)@mozilla.com/.exec(event.target.responseText)
|
||||
// let hello = /Index of/.exec(event.target.responseText)
|
||||
// if (hello) {
|
||||
// this._currentUserPath = hello[1];
|
||||
// this._currentUser = this._currentUserPath + "@mozilla.com";
|
||||
// this._baseURL = "http://dotmoz.mozilla.org/~" +
|
||||
// this._currentUserPath + "/";
|
||||
// }
|
||||
|
||||
// XXX we need to refine some server response codes
|
||||
let branch = Cc["@mozilla.org/preferences-service;1"].
|
||||
getService(Ci.nsIPrefBranch);
|
||||
this._currentUser = branch.getCharPref("browser.places.sync.username");
|
||||
|
||||
// XXX
|
||||
let path = this._currentUser.split("@");
|
||||
this._currentUserPath = path[0];
|
||||
|
||||
LOG("currentUser: "+this._currentUser);
|
||||
LOG("currentUSerPath: "+this._currentUserPath);
|
||||
|
||||
let serverURL = branch.getCharPref("browser.places.sync.serverURL");
|
||||
this._baseURL = serverURL + this._currentUserPath + "/";
|
||||
|
||||
this._loggedIn = true;
|
||||
|
||||
if (this._loginHandlers && this._loginHandlers.load)
|
||||
|
@ -1,6 +1,4 @@
|
||||
pref("browser.places.sync.serverURL", "http://dotmoz.mozilla.org/");
|
||||
pref("browser.places.sync.serverURL", "https://services.mozilla.com/user/");
|
||||
pref("browser.places.sync.username", "nobody@mozilla.com");
|
||||
pref("extensions.sync.lastversion", "firstrun");
|
||||
pref("extensions.sync.lastsync", "");
|
||||
pref("extensions.sync.remember", false);
|
||||
|
||||
pref("extensions.sync.autoconnect", false);
|
||||
pref("extensions.sync.lastsync", "0");
|
||||
|
Loading…
Reference in New Issue
Block a user