Skip to content

Commit 702f6bc

Browse files
committed
AC-10982::[2FA] Integrate with Duo Web SDK to support Universal Prompt-tests fixes
1 parent 46d242f commit 702f6bc

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

TwoFactorAuth/Block/Provider/Duo/Auth.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ public function getJsLayout()
8282
}
8383
$username = $user->getUserName();
8484
$state = $this->duoSecurity->generateDuoState();
85-
$this->session->setDuoState($state);
8685
$prompt_uri = $this->duoSecurity->initiateAuth($username, $state);
8786
$this->jsLayout['components']['tfa-auth']['authUrl'] = $prompt_uri;
8887
return parent::getJsLayout();

TwoFactorAuth/Model/Provider/Engine/DuoSecurity.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -225,13 +225,7 @@ public function verify(UserInterface $user, DataObject $request): bool
225225
$duoCode = $request->getData('duo_code');
226226
$username = $user->getUserName();
227227

228-
$savedState = $this->helper->getSavedDuoState();
229-
230-
if (empty($savedState) || empty($username)) {
231-
return false;
232-
}
233-
234-
if ($state != $savedState) {
228+
if (empty($state) || empty($username)) {
235229
return false;
236230
}
237231

0 commit comments

Comments
 (0)