Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/apostrophecms/apostrophe-users-superadmin
Creates a hidden "superadmin" user that cannot be edited by regular admins and always has the admin permission.
https://github.com/apostrophecms/apostrophe-users-superadmin
Last synced: about 2 months ago
JSON representation
Creates a hidden "superadmin" user that cannot be edited by regular admins and always has the admin permission.
- Host: GitHub
- URL: https://github.com/apostrophecms/apostrophe-users-superadmin
- Owner: apostrophecms
- Created: 2019-11-20T16:06:16.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-20T16:09:49.000Z (about 5 years ago)
- Last Synced: 2024-11-05T05:42:22.673Z (about 2 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# apostrophe-users-superadmin
## What is it?
This module creates a `superadmin` user on your [apostrophecms](https://apostrophecms.com) site, and prevents regular admins from seeing that user account in the "Manage" view or editing it in any way.
## What can the superadmin do?
The same things a regular `admin` can do. They are a member of a similarly invisible `superadmin` group which always has the `admin` permission.
## Install
```
npm install apostrophe-users-superadmin
```## Configure
In `app.js`:
```javascript
modules: {
'apostrophe-users-superadmin': {}
}
```## Create the user and set their password
```
node app apostrophe-users:set-superadmin-password
[you will be prompted for a password]
```If you do not want to be prompted, you may also specify the password on the command line. This is less secure when typing at the keyboard, but useful in scripts.
## Change the user's password
Just use the task again:
```
node app apostrophe-users:set-superadmin-password
[you will be prompted for a new password]
```## Changing the superadmin username and group name
You may pass the `hiddenUser` and `hiddenGroup` options to the `apostrophe-users` module. Do NOT pass them to `apostrophe-users-superadmin`, that module just "improves" `apostrophe-users` with the ability to understand these options.