mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 02:53:41 +08:00
Added a line to activate the user from the rails console
I added a line to activate the user from the rails console, for the case when the mail server hasn't been configured yet and discourse can't send activation mails.
This commit is contained in:
parent
5703e3923c
commit
79bd9d8d45
|
@ -298,6 +298,7 @@ and create an account by logging in normally, then run the commands:
|
|||
|
||||
# (in rails console)
|
||||
> me = User.find_by_username_or_email('myemailaddress@me.com')[0]
|
||||
> me.activate #use this in case you haven't configured your mail server and therefore can't receive the activation mail.
|
||||
> me.admin = true
|
||||
> me.save
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user