nextcloud/tests/lib/Share20
Daniel Calviño Sánchez 45de42a6b8 Fix disabling send password by Talk without new password in mail shares
When "send password by Talk" was disabled in a mail share it was
possible to keep the same password as before, as it does not pose any
security issue (unlike keeping it when "send password by Talk" is
enabled, as in that case the password was already disclosed by mail).

However, if a mail share is updated but the password is not set again
only the hashed password will be available. In that case it would not
make sense to send the password by mail, so now the password must be
changed when disabling "send password by Talk".

Note that, even if explicitly setting the same password again along with
the "send password by Talk" property would work, this was also prevented
for simplicity.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-05-29 02:46:12 +02:00
..
DefaultShareProviderTest.php Adjust tests to only return group IDs 2020-05-08 08:10:38 +02:00
LegacyHooksTest.php Use the shorter phpunit syntax for mocked return values 2020-03-25 22:21:27 +01:00
ManagerTest.php Fix disabling send password by Talk without new password in mail shares 2020-05-29 02:46:12 +02:00
ShareHelperTest.php Mode to modern phpunit 2019-11-27 15:27:18 +01:00
ShareTest.php Mode to modern phpunit 2019-11-27 15:27:18 +01:00