]> source.dussan.org Git - nextcloud-server.git/commit
Fix enabling send password by Talk with same password in mail shares
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Thu, 28 May 2020 18:37:18 +0000 (20:37 +0200)
committerDaniel Calviño Sánchez <danxuliu@gmail.com>
Thu, 28 May 2020 19:51:28 +0000 (21:51 +0200)
commita426f84dbe20c02f81cfec70a5a5bd73950a70b3
tree6d489c0bccc0bf8d83d8263d1a8c1fa56d5c52fc
parent7569590514637725e044e0986be249e7b9f5b940
Fix enabling send password by Talk with same password in mail shares

When "send password by Talk" is enabled in a mail share a new password
must be also set. However, when the passwords of the original and the
new share were compared it was not taken into account that the original
password is now hashed, while the new one is not (unless no new password
was sent, in which case the password of the original share was set in
the new share by the controller, but that was already prevented due to
both passwords being literally the same), so it was possible to set the
same password again.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
lib/private/Share20/Manager.php
tests/lib/Share20/ManagerTest.php