Skip to content
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/PasswordPolicyConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,15 @@ public function setEnforceSpecialCharacters(bool $enforceSpecialCharacters) {
* @return bool
*/
public function getEnforceHaveIBeenPwned(): bool {
$hasInternetConnection = $this->config->getSystemValue('has_internet_connection', true);
if(!$hasInternetConnection) {
return false;
}

return $this->config->getAppValue(
'password_policy',
'enforceHaveIBeenPwned',
'0'
'1'
) === '1';
}

Expand Down