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

fix: Auth fix

Übergeordneter 1b2ce53f
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -61,12 +61,22 @@ public function getTitle($Locale = null)
/**
* Authenticate the user
*
* @param string|array|integer $authCode
* @param string|array|integer $authData
*
* @throws QUI\Auth\Google2Fa\Exception
*/
public function auth($authCode)
public function auth($authData)
{
if (!is_array($authData)
|| !isset($authData['code'])
) {
throw new Google2FaException(array(
'quiqqer/authgoogle2fa',
'exception.auth.wrong.auth.code'
));
}
$authCode = $authData['code'];
$authSecrets = json_decode($this->User->getAttribute('quiqqer.auth.google2fa.secrets'), true);
// if no secret keys have been generated -> automatically authenticate the user
......
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