-
Notifications
You must be signed in to change notification settings - Fork 321
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
L10N_ERROR[oktaverify.numberchallenge.instruction] #969
Comments
@jscriptcoder thanks for filing the issue. I have a few questions and also wanted to give some context on this feature. Ideally the UI should look like this. And this only shows up of client (verify apps and backend supports this flow). That said
Checkout the test and mockdata for more info https://github.com/okta/okta-signin-widget/pull/884/files#diff-4b2ed50d042dededa6f2af06dc054199R5236 |
Hi @magizh-okta , thanks for the quick answer, Answering your questions:
.number-challenge-view { display: none; } Maybe I'm missing styles? since I'm sticking to the sass files of the previous version... Actually when I wrote the previous sentence, I decided to have a quick look at the new sass files and I found this: I can see this is already hidden, and probably it's shown programmatically. No issue then, this is actually my fault for not keeping the sass files up to date. I guess this issue can be closed. Sorry for the troubles. Fran |
We're seeing the same issue after upgrading: Can this be merged: #1010? |
@jscriptcoder & @restfulhead - Thank you for confirming this is still an issue, we will pass this along to our team to take a look at the PR. internal ref: https://oktainc.atlassian.net/browse/OKTA-278094 |
@restfulhead the backend api response should be returning the number. Can you post a recording of the flow and the api response. If you are unable to post the recording can you confirm if you just get this state after primary auth or this show up after showing the old push UI. FYI this number challenge view works only when backend flag is on and you should not be seeing this unless the flag is on to combine risk scoring feature with okta verify. |
Also @restfulhead I guess you might have not consumed the new sass files and might be missing this change. https://github.com/okta/okta-signin-widget/blob/master/assets/sass/modules/_mfa-challenge-forms.scss#L72 Similar to the #969 (comment) Please confirm if it works so we can close the issue. |
Ah, yes, that was it. We weren't pulling the latest styles. I've updated it and no longer see the error. Ticket can be closed, thank you. |
Great thanks! |
what are those new styles and where can i find those exactly? |
I'm submitting a
Background info
I'm having an issue in the NumberChallengeView (see screenshot below)
Now, I debugged the widget and noticed this line:
okta-signin-widget/src/views/mfa-verify/NumberChallengeView.js
Line 44 in b603247
Looks like returning
null
is causing this L10N_ERROR. If I instead return an empty string, I get the translation key properly replaced, because apparently the templating engine is complaining that the argument is missing:With a number, which seems to be expecting, the message looks strange since it outputs the number twice. Not sure what's supposed to appear in here:
Expected behavior
What should have happened?
Definitely not that ugly message. Above all because the label with the translation key oktaverify.numberchallenge.instruction is there.
What went wrong?
Looks like there is a bug, or at least it appears to me, by playing around with the value returned by
getTemplateData()
Steps to reproduce
Well, send push must be enabled
Your environment
The text was updated successfully, but these errors were encountered: