mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 02:49:29 +08:00
guide had invalid api
This commit is contained in:
parent
f6b850e7a4
commit
e4baea77be
|
@ -320,7 +320,7 @@ and create an account by logging in normally, then run the commands:
|
||||||
RAILS_ENV=production bundle exec rails c
|
RAILS_ENV=production bundle exec rails c
|
||||||
|
|
||||||
# (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')
|
||||||
> me.activate #use this in case you haven't configured your mail server and therefore can't receive the activation mail.
|
> 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 New Issue
Block a user