Skip to content
Snippets Groups Projects
Commit 06b1088b authored by Olav Morken's avatar Olav Morken
Browse files

authYubiKey: Fix use of &new, which isn't correct for PHP5.

Thanks to Patrick Honing for reporting this bug.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2307 44740490-163a-0410-bde0-09ae8108e29a
parent a45b612a
No related branches found
No related tags found
No related merge requests found
......@@ -186,7 +186,7 @@ class sspmod_authYubiKey_Auth_Source_YubiKey extends SimpleSAML_Auth_Source {
$attributes = array();
try {
$yubi = &new Auth_Yubico($this->yubi_id, $this->yubi_key);
$yubi = new Auth_Yubico($this->yubi_id, $this->yubi_key);
$auth = $yubi->verify($otp);
$uid = self::getYubiKeyPrefix($otp);
$attributes = array('uid' => array($uid));
......
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