Changeset View
Changeset View
Standalone View
Standalone View
plugins/kolab_2fa/lib/Kolab2FA/Driver/Yubikey.php
Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | public function set($key, $value, $persistent = true) | ||||
} | } | ||||
catch (\Exception $e) { | catch (\Exception $e) { | ||||
return false; | return false; | ||||
} | } | ||||
// truncate the submitted yubikey code to 12 characters | // truncate the submitted yubikey code to 12 characters | ||||
$value = substr($value, 0, 12); | $value = substr($value, 0, 12); | ||||
} | } | ||||
// invalid or no yubikey token provided | |||||
elseif ($key == 'yubikeyid') { | |||||
return false; | |||||
} | |||||
return parent::set($key, $value, $persistent); | return parent::set($key, $value, $persistent); | ||||
} | } | ||||
/** | /** | ||||
* @override | * @override | ||||
*/ | */ | ||||
protected function set_user_prop($key, $value) | protected function set_user_prop($key, $value) | ||||
Show All 9 Lines |