Skip to content
Snippets Groups Projects
Unverified Commit 324a1891 authored by lukasmatusiewicz's avatar lukasmatusiewicz Committed by GitHub
Browse files

send empty realm if not set to avoid the exception (#40)

* send empty realm if not set

* always add realm to params

* Update composer.json

* Update composer.json

* Update composer.json

* Update runTests.yml

* Update composer.json
parent d3769bb4
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,7 @@ jobs:
- name: Run PHPUnit Tests
uses: php-actions/phpunit@master
with:
version: 9.6.7
php_version: 7.3
php_extensions: xdebug
bootstrap: vendor/autoload.php
......
......@@ -27,7 +27,7 @@
"ext-curl": "*"
},
"require-dev": {
"phpunit/phpunit": "*",
"phpunit/phpunit": "<=9.6.7",
"internations/http-mock": "*"
}
}
\ No newline at end of file
......@@ -187,12 +187,8 @@ class PrivacyIDEA
return null;
}
if (!empty($this->realm))
{
$params["realm"] = $this->realm;
}
$params["user"] = $username;
$params["realm"] = $this->realm;
$params["genkey"] = $genkey;
$params["type"] = $type;
$params["description"] = in_array("description", $params) ? $description : "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment