Page MenuHomePhabricator

Recover more flexibly from an already-verified email
ClosedPublic

Authored by epriestley on Nov 21 2013, 10:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 11, 10:04 AM
Unknown Object (File)
Sat, Dec 7, 1:33 AM
Unknown Object (File)
Fri, Dec 6, 12:20 PM
Unknown Object (File)
Tue, Dec 3, 2:10 PM
Unknown Object (File)
Sat, Nov 30, 6:13 PM
Unknown Object (File)
Fri, Nov 29, 4:04 AM
Unknown Object (File)
Tue, Nov 26, 11:02 AM
Unknown Object (File)
Tue, Nov 26, 11:02 AM
Subscribers

Details

Summary

Ref T4140. We could hit a redirect loop for a user with a verified primary email address but no "is verified" flag on their account. This shouldn't be possible since the migration should have set the flag, but we can deal with it more gracefully when it does happen (maybe because users forgot to run storage/upgrade, or because of ghosts).

In the controller, check the same flag we check before forcing the user to the controller.

When verifying, allow the verification if either the email or user flag isn't set.

Test Plan

Hit /login/mustverify/; verified an address.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped