Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Adding Users Help

Started by Muut Archive 9 years ago · 6 replies · 538 views
9 years ago

Added new user like this below via ssh but can't login?

Creating new user
Enter a username: members
Enter a password:
Password must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters
Enter a password:
Repeat the password:
Enter an email: [email protected]
Please choose a set of permissions:
[a] Admin Access
[s] Site Access
[b] Admin and Site Access

[s]
Permissions [s] is invalid.
Please choose a set of permissions:
[a] Admin Access
[s] Site Access
[b] Admin and Site Access
s
Enter a fullname: Rick Wilkins
Enter a title: Member
Please choose the state for the account:
[enabled ] Enabled
[disabled] Disabled
enabled

Success! User members created.
[email protected] [~/public_html]#

Then
The members.yaml file contains this
email: [email protected]
access:
site:
login: true
fullname: 'Rick Wilkins'
title: Member
state: enabled
hashed_password: *****

9 years ago

You can't login to what, Admin? In this case you had to choose "Admin and Site access"

9 years ago

See if this helps explain,
1: via terminal I created a user set as s (site access)
Enter a username: honeybee
Enter a password:
Repeat the password:
Enter an email: [email protected]
Please choose a set of permissions:
[a] Admin Access
[s] Site Access
[b] Admin and Site Access

s
Enter a fullname: Suzie Wilkins
Enter a title: Member
Please choose the state for the account:
[enabled ] Enabled
[disabled] Disabled
enabled

Success! User honeybee created.
[email protected] [~/public_html]#

2: from the restricted page the login I created above give the below error
Login failed...
User Login
This page is restricted...

3: try login with admin info it works just not my new users

9 years ago

Ok, can you paste what's in the user/accounts/honeybee.yaml file? And what's the page header of the restricted page?

Use triple backticks (or hyphens) to paste the code, so it's printed nicer in the forum (press the ? icon in the top-right here in the editor for an example)

9 years ago

Page Header
'''
title: 'Area 51'
menu: 'Area 51'
access:
site.login: true
'''
honeybee.yaml
'''
email: [email protected]
access:
site:
login: true
fullname: 'Suzie Wilkins'
title: Member
state: enabled
hashed_password: AfwM3zS.lA.RA8E8vk66aa3fIqYrentR4OCqofq
'''

9 years ago

Solved just a mistake on my part sorry I can indeed login as needed.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1345 9 years ago
Archive · by Muut Archive, 9 years ago
2 932 9 years ago
Archive · by Muut Archive, 9 years ago
2 4059 9 years ago
Archive · by Muut Archive, 9 years ago
1 2945 9 years ago
Archive · by Muut Archive, 9 years ago
3 1117 9 years ago