We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 452b443 commit c43175fCopy full SHA for c43175f
1 file changed
lib/private/Share20/Manager.php
@@ -35,6 +35,7 @@
35
use OCP\Security\Events\ValidatePasswordPolicyEvent;
36
use OCP\Security\IHasher;
37
use OCP\Security\ISecureRandom;
38
+use OCP\Security\PasswordContext;
39
use OCP\Share;
40
use OCP\Share\Events\BeforeShareDeletedEvent;
41
use OCP\Share\Events\ShareAcceptedEvent;
@@ -116,7 +117,8 @@ protected function verifyPassword($password) {
116
117
118
// Let others verify the password
119
try {
- $this->dispatcher->dispatchTyped(new ValidatePasswordPolicyEvent($password));
120
+ $event = new ValidatePasswordPolicyEvent($password, PasswordContext::SHARING);
121
+ $this->dispatcher->dispatchTyped($event);
122
} catch (HintException $e) {
123
/* Wrap in a 400 bad request error */
124
throw new HintException($e->getMessage(), $e->getHint(), 400, $e);
0 commit comments