]> source.dussan.org Git - nextcloud-server.git/commit
Fix creating a mail share with a password
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Thu, 28 May 2020 18:27:33 +0000 (20:27 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Fri, 29 May 2020 19:38:28 +0000 (19:38 +0000)
commit73f1ea99acf4c6825d296cc9111e802d63f9a523
treebb41bad2f33a409a16592f76561a1b66321d90e2
parent65023a742a876f7ccc89ff9d7faf2ee4d6490bd9
Fix creating a mail share with a password

When a mail share was created with a password the given password was not
hashed, so it was not possible to open the share with that password.
Moreover, if passwords were enforced the given password was ignored and
a new one was set (although in this case it was hashed so it worked as
expected). Now the given password is properly hashed and not overriden.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
apps/sharebymail/lib/ShareByMailProvider.php
apps/sharebymail/tests/ShareByMailProviderTest.php