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

Admin account create

Started by Muut Archive 11 years ago · 6 replies · 505 views
11 years ago

Is there any way to create admin account without command line?

11 years ago

Yes you are placing a file in the user/accounts folder. The name of the file is the username for login e.g. for admin.yaml it will be "admin". The file itself has the contents

YAML
password: 'password'
email: '[email protected]'
fullname: 'Johnny Appleseed'
title: 'Site Administrator'
access:
  admin:
    login: true
    super: true

As you can see the password s set to "password" (You can find more info here http://learn.getgrav.org/admin-panel/introduction )

11 years ago

Thanks! It worked. Can I change the username - 'admin'?

11 years ago

Yes, it was just an example. You can create any alphanumeric name + underscores. In you case you may change it to osmangoni.yaml ;-) It's really up to you. What matters are the access configuration. admin.super: true means you can change everything (documentation).

11 years ago

@Sommerregen, You are awesome. GRAV is also awesome. Can you help me with the 500 Internal Error?

11 years ago

@Sommerregen, my site is now working. Not sure what have changed! I am loving GRAV. How can I marked the post as solved?

11 years ago

Hi @osmangoni. Great! Actually you can't mark posts as solved... :-/ Usually post are ending with "thanks" or something similiar or "solved" and everybody knows that there is no further help required. And sometimes people add other thoughts to posts with similiar problems or have good additions to say! :-D

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1346 9 years ago
Archive · by Muut Archive, 9 years ago
2 933 9 years ago
Archive · by Muut Archive, 9 years ago
2 4060 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