usgo / gocongress

Annual US Go Congress Website
https://www.gocongress.org
MIT License
20 stars 17 forks source link

How to create local user #235

Closed neagle closed 3 years ago

neagle commented 3 years ago

Make the create_user script interactive to make it easier for developers to create users without needing to make any modifications to files which would then show up as changes in their git status.

@EarthSchlange & @jaredbeck:

Thanks a lot, Michael, for your attention to details. You're showing why fresh eyes can be so useful. 😄

But if we're really going to try to make things easy and discourage any direct editing of files, why not go all the way?

https://user-images.githubusercontent.com/176993/122681729-c7739200-d1c3-11eb-81f5-fce883470c69.mov

michaelhiiva commented 3 years ago

Very cool. That is good solution to removing the user changing any files.

Should we provide defaults if one wants to just hit go quickly through the prompts without adding input?

neagle commented 3 years ago

In this case, having defaults for things like an email address or password don't make much sense to me: the user is going to need to use those values to log in later, so they need to at least devote enough mental energy to note those defaults and remember them, which cuts directly against any ease that making them defaults would theoretically offer.