-
Notifications
You must be signed in to change notification settings - Fork 2
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
SMS phone verification using user's locale #191
Conversation
I ran into some trouble testing. After removing the fields in Mongo I got this:
In the logs this comes down to these errors:
My locale within Java is |
I should add that I changed the settings on the front end (🌎 -> Français) and the website changes immediately, but the first time I did this it did not update After that, it updates fairly quickly back and forth between the front end and Mongo each time I change the language from the 🌎 button. |
@JymDyerIBI Good catch, thanks for the fix! |
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.
👍 Looks good.
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.
@amy-corson-ibigroup Would you mind seeing if you encounter the issues that @AdrianaCeric encountered on her local setup? |
@AdrianaCeric - I did not have that happen to me, I set it to French and after a brief lag the notifications were French and stayed French. I was running my own otp-middleware instance with its own mongodb, though. I wonder whether there's an issue with st and st-qa both calling the same push notifications middleware? |
@JymDyerIBI This PR is about the Twilio SMS service and does not deal with the push notifications middleware. |
Oops. Twilio's got separate instances and I see I was using the right one in my config when I tested. |
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.
I tested French, Spanish, Tagalog, Korean, and Vietnamese with no issues!
Thank you @amy-corson-ibigroup for checking! |
Hm there may have been something weird going on on my end haha |
Checklist
dev
before they can be merged tomaster
)Description
This PR makes use of the user's
preferredLocale
for sending the phone verification SMS via Twilio.To test:
phoneNumber
andisPhoneNumberVerified
from yourOtpUser
record in Mongo.