Page MenuHomePhabricator

During first-time setup, create an administrator account with no authentication instead of weird, detached authentication

Authored by epriestley on Feb 6 2019, 11:33 PM.
Referenced Files
Unknown Object (File)
Thu, Aug 11, 3:42 PM
Unknown Object (File)
Mon, Aug 8, 5:21 PM
Unknown Object (File)
Fri, Jul 29, 9:52 PM
Unknown Object (File)
Mon, Jul 18, 4:08 AM
Unknown Object (File)
Jun 26 2022, 3:00 PM
Unknown Object (File)
Jun 13 2022, 2:57 PM
Unknown Object (File)
Jun 12 2022, 3:46 AM
Unknown Object (File)
Jun 11 2022, 9:52 PM



Ref T6703. Currently, when you create an account on a new install, we prompt you to select a password.

You can't actually use that password unless you set up a password provider, and that password can't be associated with a provider since a password provider won't exist yet.

Instead, just don't ask for a password: create an account with a username and an email address only. Setup guidance points you toward Auth.

If you lose the session, you can send yourself an email link (if email works yet) or bin/auth recover it. This isn't really much different than the pre-change behavior, since you can't use the password you set anyway until you configure password auth.

This also makes fixing T9512 more important, which I'll do in a followup. I also plan to add slightly better guideposts toward Auth.

Test Plan

Hit first-time setup, created an account.

Diff Detail

rP Phabricator
Lint Not Applicable
Tests Not Applicable