Fix PHP warnings
This commit is contained in:
parent
87fbaea696
commit
2129b4e2c0
1 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@ class Yubikey extends Base
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function init(array $config)
|
public function init($config)
|
||||||
{
|
{
|
||||||
parent::init($config);
|
parent::init($config);
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ class Yubikey extends Base
|
||||||
/**
|
/**
|
||||||
* @override
|
* @override
|
||||||
*/
|
*/
|
||||||
public function set($key, $value)
|
public function set($key, $value, $persistent = true)
|
||||||
{
|
{
|
||||||
if ($key == 'yubikeyid' && strlen($value) > 12) {
|
if ($key == 'yubikeyid' && strlen($value) > 12) {
|
||||||
// verify the submitted code
|
// verify the submitted code
|
||||||
|
@ -108,7 +108,7 @@ class Yubikey extends Base
|
||||||
$value = substr($value, 0, 12);
|
$value = substr($value, 0, 12);
|
||||||
}
|
}
|
||||||
|
|
||||||
return parent::set($key, $value);
|
return parent::set($key, $value, $persistent);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue