Skip to content

Commit

Permalink
Added a line to activate the user from the rails console
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Cezar committed Jun 16, 2013
1 parent 5703e39 commit 79bd9d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/INSTALL-ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 79bd9d8

Please sign in to comment.