-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Make 2FA login work with commons #1048
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
Conversation
Thanks for the PR @maskaravivek ! Is there anyone here with 2FA enabled on their account who can test if this works? I will try and apply for 2FA next week but not sure how long it will take. |
Got 2FA enabled for my production account and tested with real device running Android 7.0. This crashes for me on prodDebug build after I enter the 2FA code and tap Submit. Logs:
|
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.
Crashes - see comment
@maskaravivek If it would help for you to get 2FA enabled on your production account, I think you can ask them at the link I mentioned in the issue and point them to this PR, stating that the beta servers aren't really sufficient for our testing/debugging needs as the results are not the same. They might help. :) |
@misaochan Updated the PR. 2FA now works across sessions and no longer crashes. Also theres no need to create a cookie manually. :) |
Codecov Report
@@ Coverage Diff @@
## master #1048 +/- ##
=========================================
+ Coverage 3.96% 3.98% +0.02%
=========================================
Files 123 123
Lines 5523 5566 +43
Branches 521 534 +13
=========================================
+ Hits 219 222 +3
- Misses 5289 5329 +40
Partials 15 15
Continue to review full report at Codecov.
|
@maskaravivek Great job! 👍 I tested this on an API 25 emulator and it works well for me, managed to login fine with my 2FA acc. Tested uploading and logging out as well - will test logging in on a non-2FA account shortly. There is a minor bug when logging in - the loading dialog persists even when 2fa code is asked for (see screenshot), and I had to use the back button to stop it. |
Ah! That wasnt happening for me while i was testing. I will check once again. Thanks for testing it. :) |
It would also be really good if we could get a code review for this PR from a security/auth standpoint. @dbrant , do you think you could help us with this? :) |
Have rebased with master to resolve conflicts. |
Happy to merge this once the loading dialog bug has been fixed. :) |
@misaochan have fixed the loader issue. |
👍 Looks perfectly fine from a security/auth standpoint! |
Great job @maskaravivek ! I tested logging in and out with both my 2FA and non-2FA account, both work well for me. :) And thanks for the review, @dbrant ! |
Addresses #328 and #352.