We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04738b7 commit 1908048Copy full SHA for 1908048
1 file changed
src/Controller/PushbackUserPass.php
@@ -85,7 +85,11 @@ public function main(Request $request): Response
85
86
$authsources = Configuration::getConfig('authsources.php')->toArray();
87
$authsourceString = $state['pushbackAuthsource'];
88
- $classname = get_class(Auth\Source::getById($authsourceString));
+ $authsourceClass = Auth\Source::getById($authsourceString);
89
+ if (is_null($authsourceClass)) {
90
+ throw new Exception("password authsource not found");
91
+ }
92
+ $classname = get_class($authsourceClass);
93
class_alias($classname, '\SimpleSAML\Module\webauthn\Auth\Source\AuthSourceOverloader');
94
$overrideSource = new class (
95
['AuthId' => $authsourceString],
0 commit comments