mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-20 12:54:23 +01:00
Fix URLs.
This commit is contained in:
parent
716182d744
commit
b9c2396d74
@ -13,16 +13,16 @@ $baseParams['__DB_NAME__'] = 'ykval';
|
||||
// itself.
|
||||
function otp2ksmurls ($otp, $client) {
|
||||
if ($client == 42) {
|
||||
return array("http://another-ykkms.example.com/wsapi/decrypt/?otp=$otp");
|
||||
return array("http://another-ykkms.example.com/wsapi/decrypt?otp=$otp");
|
||||
}
|
||||
|
||||
if (preg_match ("/^dteffujehknh/", $otp)) {
|
||||
return array("http://different-ykkms.example.com/wsapi/decrypt/?otp=$otp");
|
||||
return array("http://different-ykkms.example.com/wsapi/decrypt?otp=$otp");
|
||||
}
|
||||
|
||||
return array(
|
||||
"http://ykkms1.example.com/wsapi/decrypt/?otp=$otp",
|
||||
"http://ykkms2.example.com/wsapi/decrypt/?otp=$otp",
|
||||
"http://ykkms1.example.com/wsapi/decrypt?otp=$otp",
|
||||
"http://ykkms2.example.com/wsapi/decrypt?otp=$otp",
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user