Wouter Posted September 23, 2019 Posted September 23, 2019 Did not read properly too late... got Blocked out How can i solve this? The search function does not yield any answers.... https://processwire.com/docs/security/admin/#install-an-ssl-certificate-and-require-https-for-your-admin
Wouter Posted September 23, 2019 Author Posted September 23, 2019 Once you've got an SSL certificate installed on your server, you need to make sure that it is put to use. At minimum, we recommend locking down your "admin" template to only allow https traffic. However, make sure that your site is accessible via https://yourdomain.com before you do this, otherwise you could lock yourself out of the admin.
netcarver Posted September 23, 2019 Posted September 23, 2019 https://processwire-recipes.com/recipes/resetting-admin-password-via-api/
Wouter Posted September 23, 2019 Author Posted September 23, 2019 Hi Netcarver, Thanks for your time... Since i can not log in, and am a complete newbie to building anything on the web. How do i do this solution? How do i access the root folder. How do i run it, what does that mean? Thanks Solution Paste the following into a file (e.g. "reset.php") in the root folder of the site, then run it.
netcarver Posted September 23, 2019 Posted September 23, 2019 Hi Wouter, Can you be a little more specific about what's happening? Can you visit your site in the browser? If so, can you see the admin login page?
louisstephens Posted September 23, 2019 Posted September 23, 2019 The easiest way I have done this is to paste the following in the home.php file (this can be found under site->templates). Once you have saved your change to the home template, visit your site's home page. Once you have visited the page after updating the template, you can remove the code from the template. $admin = $users->get('admin'); // or whatever your username is $admin->setAndSave('pass', 'yo123456'); //change the password to whatever you want it to be
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now