-
Notifications
You must be signed in to change notification settings - Fork 8
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
Password Login Fixes #716
Password Login Fixes #716
Conversation
+1 for hiding this behind an env flag! Best to isolate this behaviour from prod as much as possible |
Sounds good, it's only active with password auth and not fxa as that will always create new users. |
And added the env gate. |
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.
Tested this and looks like it works without any issues! Thank you!
* Adjust /token to create a user if one doesn't exist. Only works with password auth. * Add timezone to schedule for future-use (because we're collecting it right now..) * Gate the first time registration for password auth behind an env var.
Part of #120
This allows the password flow to create a new subscriber on first-login. But only first-login. (Well when there's no subscribers.)
Input wanted: Do we need to put this behaviour behind a env flag for extra security?
I discovered a fun bug with schedule creation/updates that causes it to fail because times are in UTC and 14:00 as a start-time is bigger than 0:00 as an end time. So we now collect timezones for schedules, and store them. (That'll be handy later!) We don't do anything else with them right now.