mirror of
git://git.proxmox.com/git/pve-common.git
synced 2025-01-08 01:17:37 +03:00
partially fix #2023: Switch to https for yubico.com API
Signed-off-by: Rhonda D'Vine <rhonda@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
188097500d
commit
3b3ae60e09
@ -55,7 +55,7 @@ sub yubico_verify_otp {
|
||||
|
||||
die "yubico: wrong OTP length\n" if (length($otp) < 32) || (length($otp) > 48);
|
||||
|
||||
$url = 'http://api2.yubico.com/wsapi/2.0/verify' if !defined($url);
|
||||
$url = 'https://api2.yubico.com/wsapi/2.0/verify' if !defined($url);
|
||||
|
||||
my $params = {
|
||||
nonce => Digest::SHA::hmac_sha1_hex(time(), rand()),
|
||||
|
Loading…
Reference in New Issue
Block a user