Skip to content
Code-Schnipsel Gruppen Projekte
Commit 2a1f231c erstellt von Patrick Müller's avatar Patrick Müller
Dateien durchsuchen

fix: korrekte auth-key abfrage

Übergeordneter e571dce7
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -50,6 +50,10 @@ define('package/quiqqer/authgoogle2fa/bin/controls/Settings', [
'$deleteKeys'
],
options: {
uid: false
},
initialize: function (options) {
this.setAttribute('title', QUILocale.get(lg, 'passwords.panel.title'));
......@@ -152,6 +156,10 @@ define('package/quiqqer/authgoogle2fa/bin/controls/Settings', [
* Event: onInject
*/
$onInject: function () {
console.log(this.getAttribute('uid'));
console.log(this.getElm().get('data-qui-options-uid'));
this.resize();
this.refresh();
},
......
......@@ -85,7 +85,9 @@ public function auth($authData)
}
foreach ($authSecrets as $k => $secretData) {
if ($this->Google2FA->verifyKey(trim($secretData['key']), $authCode)) {
$key = trim(Security::decrypt($secretData['key']));
if ($this->Google2FA->verifyKey($key, $authCode)) {
return;
}
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren