Learn

Managing Members

Control who can use the Control Panel

Each member account is simply a YAML file contained in the /_config/users folder. The username is the name the file (ending with .yaml), and all the member details are Content Fields (YAML Front Matter), followed by a Bio field, very much like Pages and Entries’ content field.

Your first account is already setup for you, but you can feel free to modify and remove it altogether. Simply rename the admin.yaml.sample file to admin.yaml. You’ll need to set a password and then log into the control panel to have the password encrypted automatically.

---
first_name: User
last_name: McAwesome
roles: [admin]
password:
---
User McAwesome is a secret agent, currently undercover as a wilderness
survival guide.  We trust you will keep this information under wraps.

The fields inside your member accounts are completely up to you, though we’ve set a few defaults.

Inside the control panel you have the ability to create member accounts, update information, change passwords, and so on.

Roles

Roles exist to limit what particular members have access to. At the moment, the only role you can choose from is “admin”. Members with the “admin” role will be able to access the control panel, and those without it will not.

Members without the “admin” role can still log in on the front-end of the site, which is useful for protecting pages and/or content from the casual passer-by.

This article was last updated on March 30th, 2016. Find an error? Please let us know!