forked from decidim/decidim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change docs to use decidim_system:create_admin command (decidim#9372)
* Change docs to use decidim_system:create_admin command * Add docs on how to reset system admin password * Add links to env var and initializer docs pages * Apply suggestion from review Co-authored-by: Antti Hukkanen <[email protected]> * Add the maps services link again Co-authored-by: Antti Hukkanen <[email protected]>
- Loading branch information
1 parent
33d83c1
commit 23987be
Showing
2 changed files
with
30 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,22 +40,34 @@ When using Decidim as multi-tenant, you should keep these in mind: | |
|
||
## Managing System admins | ||
|
||
Currently Decidim doesn't provide a way to create the first System Admin in a new deployment. To do it, you should open a Rails console in your application and | ||
create it: | ||
For logging in to this dashboard, you'll need to create a system admin account from your terminal: | ||
|
||
```ruby | ||
Decidim::System::Admin.create!( | ||
email: "[email protected]", | ||
password: "your-safe-password", | ||
password_confirmation: "your-safe-password" | ||
) | ||
```bash | ||
bin/rails decidim_system:create_admin | ||
``` | ||
|
||
Once you have created your first admin you can access the system dashboard at `https://your-decidim-deployment-host/system` and login with your newly created user. | ||
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. | ||
|
||
Once you have created your first admin you can access the system dashboard at `/system`. For instance, if you have Decidim running at `https://example.org`, this URL would be `https://example.org/system`. | ||
You'll be able to login with your newly created user. | ||
|
||
From the system dashboard you can add new admins. | ||
|
||
⚠️ If you need to reset your administrator password you'll need to do it by entering the Rails console and changing it manually. ⚠️ | ||
|
||
. Open the rails console: | ||
```bash | ||
bin/rails console | ||
``` | ||
. Run the following instructions, changing them accordingly: | ||
```ruby | ||
system_admin = Decidim::System::Admin.order(:id).first # for the first system admin | ||
system_admin = Decidim::System::Admin.find_by_email "[email protected]" # if you already know the email | ||
system_admin.password = "decidim1234567890" # change for something secure | ||
system_admin.password_confirmation = "decidim1234567890" | ||
system_admin.save | ||
``` | ||
|
||
## Managing organizations | ||
|
||
Once you have your system admin setup you can also start managing the organizations in your deploy. To do it, login at the system dashboard and create a new organization | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters