[Security] Added option to return true in the method isRememberMeRequested
This commit is contained in:
parent
dd8e50baa1
commit
522ec3ef0c
@ -318,6 +318,6 @@ abstract class AbstractRememberMeServices implements RememberMeServicesInterface
|
||||
$this->logger->debug('Did not send remember-me cookie.', array('parameter' => $this->options['remember_me_parameter']));
|
||||
}
|
||||
|
||||
return $parameter === 'true' || $parameter === 'on' || $parameter === '1' || $parameter === 'yes';
|
||||
return $parameter === 'true' || $parameter === 'on' || $parameter === '1' || $parameter === 'yes' || $parameter === true;
|
||||
}
|
||||
}
|
||||
|
@ -251,6 +251,7 @@ class AbstractRememberMeServicesTest extends TestCase
|
||||
array('1'),
|
||||
array('on'),
|
||||
array('yes'),
|
||||
array(true),
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user