From 1fa7b4cb98aa2f83fb25f8c86d0f87186cafc3c7 Mon Sep 17 00:00:00 2001 From: Angel Garbarino Date: Wed, 11 Oct 2023 15:12:44 +0000 Subject: [PATCH] backport of commit f144d1be5402778edb4d0a496d0e6c8d83756194 --- changelog/23565.txt | 3 +++ ui/app/components/auth-form.js | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 changelog/23565.txt diff --git a/changelog/23565.txt b/changelog/23565.txt new file mode 100644 index 000000000000..5447d34c7db6 --- /dev/null +++ b/changelog/23565.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: Fix regression that broke the oktaNumberChallenge on the ui. +``` diff --git a/ui/app/components/auth-form.js b/ui/app/components/auth-form.js index 4f44fdc6d353..cfb1d3456d79 100644 --- a/ui/app/components/auth-form.js +++ b/ui/app/components/auth-form.js @@ -269,7 +269,7 @@ export default Component.extend(DEFAULTS, { return; } let response = null; - this.args.setOktaNumberChallenge(true); + this.setOktaNumberChallenge(true); this.setCancellingAuth(false); // keep polling /auth/okta/verify/:nonce API every 1s until a response is given with the correct number for the Okta Number Challenge while (response === null) { @@ -332,7 +332,7 @@ export default Component.extend(DEFAULTS, { }); }, returnToLoginFromOktaNumberChallenge() { - this.args.setOktaNumberChallenge(false); + this.setOktaNumberChallenge(false); this.set('oktaNumberChallengeAnswer', null); }, },