Fix: old password sent upon updating a password for the first time

- Finish to fix #1521
This commit is contained in:
Fabrice Mouhartem 2024-07-19 11:50:37 +02:00
parent 1ac0cd3e1d
commit e1b2be39c0
No known key found for this signature in database
GPG Key ID: 90579C24FD123C93
1 changed files with 1 additions and 1 deletions

View File

@ -1359,7 +1359,7 @@ define([
var viewH = Utils.Hash.getViewHashFromKeys(_secret);
var href = Utils.Hash.hashToHref(editH, parsed.type);
var roHref = Utils.Hash.hashToHref(viewH, parsed.type);
Cryptpad.setPadAttribute('password', password, w(), parsed.getUrl());
Cryptpad.setPadAttribute('password', pw, w(), parsed.getUrl());
Cryptpad.setPadAttribute('channel', chan, w(), parsed.getUrl());
Cryptpad.setPadAttribute('href', href, w(), parsed.getUrl());
Cryptpad.setPadAttribute('roHref', roHref, w(), parsed.getUrl());