Merge pull request #18908 from owncloud/allow-0-as-password
Allow 0 and false as password
This commit is contained in:
commit
acee9d4750
1 changed files with 1 additions and 1 deletions
|
@ -765,7 +765,7 @@ class Share extends Constants {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate hash of password - same method as user passwords
|
// Generate hash of password - same method as user passwords
|
||||||
if (!empty($shareWith)) {
|
if (is_string($shareWith) && $shareWith !== '') {
|
||||||
self::verifyPassword($shareWith);
|
self::verifyPassword($shareWith);
|
||||||
$shareWith = \OC::$server->getHasher()->hash($shareWith);
|
$shareWith = \OC::$server->getHasher()->hash($shareWith);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue