]> 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)
committerDaniel Calviño Sánchez <danxuliu@gmail.com>
Thu, 28 May 2020 19:51:22 +0000 (21:51 +0200)
commite59e283cc2f47753e76529a42dcbb491da0fb799
tree1379c970481f10e79b34b8796cb27222e6e399d9
parenta2b0a7c30e128f46f38a5b0930859fd9c4603f6b
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