mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -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)
|
# (in rails console)
|
||||||
> me = User.find_by_username_or_email('myemailaddress@me.com')[0]
|
> 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.admin = true
|
||||||
> me.save
|
> me.save
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue