Fix salt in client
This commit is contained in:
@@ -65,6 +65,11 @@ function on_sumbit()
|
||||
domain = parseURI.parseUri(form.ownerDocument.baseURI);
|
||||
domain = domain["host"];
|
||||
|
||||
salt = parseURI.parseUri(prefSet.prefs["account_url"]);
|
||||
salt = salt["host"] + salt["path"];
|
||||
|
||||
console.log("salt " + salt);
|
||||
|
||||
// Get all <input type="text">
|
||||
for (i=0; i<fields.length; i++)
|
||||
{
|
||||
@@ -89,7 +94,7 @@ function on_sumbit()
|
||||
continue;
|
||||
|
||||
mkey = password.substring(2);
|
||||
mkey = pkdbf2.pkdbf2(mkey, prefSet.prefs["account_url"], 1000, 256/8);
|
||||
mkey = pkdbf2.pkdbf2(mkey, salt, 1000, 256/8);
|
||||
|
||||
user = null;
|
||||
// Subset of common user field
|
||||
|
||||
Reference in New Issue
Block a user