kolab_2fa: Fix compatibility with OTP apps that require algorithm in upper-case
This commit is contained in:
parent
ccc000f219
commit
3d54dae3e6
1 changed files with 4 additions and 0 deletions
|
@ -734,6 +734,10 @@ class kolab_2fa extends rcube_plugin
|
|||
try {
|
||||
$uri = $driver->get_provisioning_uri();
|
||||
|
||||
// Some OTP apps have an issue with algorithm character case
|
||||
// So we make sure we use upper-case per the spec.
|
||||
$uri = str_replace('algorithm=sha', 'algorithm=SHA', $uri);
|
||||
|
||||
$qr = new Endroid\QrCode\QrCode();
|
||||
$qr->setText($uri)
|
||||
->setSize(240)
|
||||
|
|
Loading…
Add table
Reference in a new issue