Wouter Posted September 23, 2019 Share 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 Link to comment Share on other sites More sharing options...
Wouter Posted September 23, 2019 Author Share 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. Link to comment Share on other sites More sharing options...
netcarver Posted September 23, 2019 Share Posted September 23, 2019 https://processwire-recipes.com/recipes/resetting-admin-password-via-api/ Link to comment Share on other sites More sharing options...
Wouter Posted September 23, 2019 Author Share 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. Link to comment Share on other sites More sharing options...
netcarver Posted September 23, 2019 Share 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? Link to comment Share on other sites More sharing options...
louisstephens Posted September 23, 2019 Share 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 Link to comment Share on other sites More sharing options...
bernhard Posted September 24, 2019 Share Posted September 24, 2019 1 Link to comment Share on other sites More sharing options...
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