Skip to content
Snippets Groups Projects
Commit c601b78c authored by Lucas Cruz's avatar Lucas Cruz Committed by Kristen Pol
Browse files

Issue #3311350 by lucassc, JoshaHubbers, Kristen Pol, gquisini:...

Issue #3311350 by lucassc, JoshaHubbers, Kristen Pol, gquisini: send_reset_email variable type is integer but applied schema class is BooleanData
parent 7a383870
Branches 1.0.x
No related tags found
No related merge requests found
Pipeline #90954 passed with warnings
......@@ -76,9 +76,9 @@ class PasswordPolicy extends ConfigEntityBase implements PasswordPolicyInterface
/**
* Send email notification upon reset.
*
* @var int
* @var bool
*/
protected $send_reset_email = 0;
protected $send_reset_email = FALSE;
/**
* Send pending email days before.
......@@ -170,7 +170,7 @@ class PasswordPolicy extends ConfigEntityBase implements PasswordPolicyInterface
/**
* Return the password reset email value from the policy.
*
* @return int
* @return bool
* Whether to send email upon password resets.
*/
public function getPasswordResetEmailValue() {
......
......@@ -185,7 +185,7 @@ class PolicyConfiguration extends ProcessPluginBase implements ContainerFactoryP
private function transformV1(array &$value) {
$value['label'] = $value['name'];
$value['password_reset'] = $value['expiration'];
$value['send_reset_email'] = ($value['warning'] !== 0) ? 1 : 0;
$value['send_reset_email'] = ($value['warning'] !== 0) ? TRUE : FALSE;
$value['days'] = explode(',', $value['warning']);
$unserialize_constraints = unserialize($value["constraints"]);
unset($value['constraints']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment