New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEATURE: impersonation now requires second factor authorization #12662
Conversation
arpitjalan
commented
Apr 9, 2021
930692b
to
a663625
Compare
a663625
to
63c1f3e
Compare
Quick question: why is the |
second_factor_token: | ||
this.securityKeyCredential || this.secondFactorToken, | ||
second_factor_method: this.secondFactorMethod, | ||
timezone: moment.tz.guess(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the timezone required?
}).then( | ||
(result) => { | ||
// Successful login | ||
if (result && result.error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it a successful login if there's an error?
document | ||
.getElementById("second-factor") | ||
.querySelector("input") | ||
.focus() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could shorten that a bit.
document | |
.getElementById("second-factor") | |
.querySelector("input") | |
.focus() | |
document.querySelector("#second-factor input").focus() |
sorry @techapj I am closing this, when you free up you can spend some time with @martin-brennan doing the "generic" reusable 2fa screen. Then it should be a breeze plugging this in anywhere we need it. |