Add administration section on how to create users while registration is closed (#107)

This commit is contained in:
James 2017-04-20 11:08:05 -07:00 committed by wxcafé
parent 85ff981217
commit fa8d76c406
1 changed files with 11 additions and 0 deletions

View File

@ -51,6 +51,17 @@ Will confirm a user manually, in case they don't have access to their confirmati
Will remove users that never confirmed their e-mail and never signed in, meaning they
only have a user record and an avatar record, with no files uploaded.
## Creating Users while Registration is Closed
RAILS_ENV=production bundle exec rails c
account = Account.create!(username: 'username')
user = User.create!(email: 'email', password: 'password', account: account)
user.confirm
account.save!
user.save!
This will create a new user as if they had walked through the registration process and confirmed their account, and will immediately be able to log in. Make sure the user resets their password away from the temporary password you give them!
## Mastodon-admin mailing list
There's a mailing list open for mastodon instance admins at