Skip to content

Use create_admin task for system admin #102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 4 additions & 22 deletions en/modules/admin/pages/system.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,35 +10,18 @@ image::system-log_in.png[system panel log in]

== 1. Create an admin account

For accessing in this dashboard, you'll need to create a system admin account with the Rails console, as the instructions that you have in your `README.md` file:
For logging in to this dashboard, you'll need to create a system admin account from your terminal:

Open a console:
[source, console]
....
bin/rails console
bin/rails decidim_system:create_admin
....

Then create the systems' admin:

[source, ruby]
....
user = Decidim::System::Admin.new(email: <email>, password: <password>, password_confirmation: <password>)
user.save!
....

So for example, if your email is `[email protected]` and your password `decidim123456` that'd be:

[source, ruby]
....
user = Decidim::System::Admin.new(email: '[email protected]', password: 'decidim123456', password_confirmation: 'decidim123456')
user.save!
....

IMPORTANT: Please don't use this password, is really insecure!
You'll be asked for an email and a password. For security, the password will not get displayed back at you and you'll need to confirm it.

== 2. Access the Dashboard

After you've logged in, you'll see an empty dashboard:
With the email and password that you've added in the past step, you'll be able to log in. After you've logged in, you'll see an empty dashboard:

image::system-dashboard.png[system empty dashboard]

Expand All @@ -60,7 +43,6 @@ TIP: Please mind that some of these fields can't change through the System Form,
|Required
|The reference prefix is used to uniquely identify resources across all organizations. It's for identifying different resources inside of Decidim. For instance, "BCN". You can change how it's created this reference through xref:configure:initializer.adoc[Decidim's initializer] (see **Custom resource reference**).


|Host
|Required
|Fully qualified domain name. For instance, "example.org" or "decidim.barcelona".
Expand Down