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:
Cezar 2013-06-16 19:41:27 -03:00
parent 5703e3923c
commit 79bd9d8d45

View File

@ -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