mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Merge pull request #1036 from cezarcp/patch-1
Added a line to activate the user from the rails console
This commit is contained in:
commit
cd7f038929
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue