1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 03:50:54 +01:00
phorge-phorge/webroot/rsrc/css/aphront
epriestley 7f11e8d740 Improve handling of email verification and "activated" accounts
Summary:
Small step forward which improves existing stuff or lays groudwork for future stuff:

  - Currently, to check for email verification, we have to single-query the email address on every page. Instead, denoramlize it into the user object.
    - Migrate all the existing users.
    - When the user verifies an email, mark them as `isEmailVerified` if the email is their primary email.
    - Just make the checks look at the `isEmailVerified` field.
  - Add a new check, `isUserActivated()`, to cover email-verified plus disabled. Currently, a non-verified-but-not-disabled user could theoretically use Conduit over SSH, if anyone deployed it. Tighten that up.
  - Add an `isApproved` flag, which is always true for now. In a future diff, I want to add a default-on admin approval queue for new accounts, to prevent configuration mistakes. The way it will work is:
    - When the queue is enabled, registering users are created with `isApproved = false`.
    - Admins are sent an email, "[Phabricator] New User Approval (alincoln)", telling them that a new user is waiting for approval.
    - They go to the web UI and approve the user.
    - Manually-created accounts are auto-approved.
    - The email will have instructions for disabling the queue.

I think this queue will be helpful for new installs and give them peace of mind, and when you go to disable it we have a better opportunity to warn you about exactly what that means.

Generally, I want to improve the default safety of registration, since if you just blindly coast through the path of least resistance right now your install ends up pretty open, and realistically few installs are on VPNs.

Test Plan:
  - Ran migration, verified `isEmailVerified` populated correctly.
  - Created a new user, checked DB for verified (not verified).
  - Verified, checked DB (now verified).
  - Used Conduit, People, Diffusion.

Reviewers: btrahan

Reviewed By: btrahan

CC: chad, aran

Differential Revision: https://secure.phabricator.com/D7572
2013-11-12 14:37:04 -08:00
..
aphront-bars.css Standard colors for progress bars 2013-09-13 08:29:16 -07:00
aphront-notes.css Move #888 and #999 to $lightgreytext 2013-09-02 08:12:18 -07:00
calendar-view.css Move #888 and #999 to $lightgreytext 2013-09-02 08:12:18 -07:00
context-bar.css Misc CSS tweaks, timeline, mobile 2013-09-29 07:26:39 -07:00
dark-console.css Move #888 and #999 to $lightgreytext 2013-09-02 08:12:18 -07:00
dialog-view.css Improve handling of email verification and "activated" accounts 2013-11-12 14:37:04 -08:00
error-view.css Fix warning panel on large commits 2013-10-30 09:20:48 -07:00
lightbox-attachment.css Move all CSS "z-index" rules to "z-index.css", fix Differential z-index problem 2012-12-30 09:30:21 -08:00
list-filter-view.css Color tweaks for action list, headers 2013-09-03 07:00:06 -07:00
multi-column.css Add Fluid-ish view to AphrontMultiColumnView 2013-11-05 18:57:52 -08:00
notification.css More grey text updates 2013-09-02 13:57:48 -07:00
pager-view.css When pagers aren't connected to an ObjectItemListView, put them in a little box 2013-09-13 14:43:33 -07:00
panel-view.css Add objectheaders to new View 2013-09-28 15:55:38 -07:00
phabricator-nav-view.css Flatten side nav 2013-05-17 09:58:37 -07:00
request-failure-view.css PhabricatorEnv 2011-01-31 11:55:26 -08:00
table-view.css Move #888 and #999 to $lightgreytext 2013-09-02 08:12:18 -07:00
tokenizer.css UIColor Blues and common color integration 2013-09-02 08:10:47 -07:00
tooltip.css Move all CSS "z-index" rules to "z-index.css", fix Differential z-index problem 2012-12-30 09:30:21 -08:00
transaction.css Fix Remarkup sprite, tweak Transactions 2013-10-26 08:43:34 -07:00
two-column.css Phriction Redesign 2013-04-11 15:05:50 -07:00
typeahead.css Move #888 and #999 to $lightgreytext 2013-09-02 08:12:18 -07:00