Jump to content
Anton

Can't login to backend

Recommended Posts

Hi there,

I'm working with Processwire 3. Before summer I had issues to load to my backend. I finally managed to connect thanks to this

$admin = wire('users')->get('admin');
$admin->setOutputFormatting(false);
$admin->set('pass', 'yo12345ZZ')

$admin->save('pass');

But later, the problem evolved: when I logged in to the site, the login page redirected me to the home. I didn't find any information about it on the web.
But recently, the redirection has changed, now it is the login page that reloads when you connect. 
I don't know where to start to fix this. It looks like sorcery.

Thank you for all the help you can give me.

 

Share this post


Link to post
Share on other sites
On 9/6/2019 at 10:46 AM, Anton said:

But later, the problem evolved: when I logged in to the site, the login page redirected me to the home. I didn't find any information about it on the web.
But recently, the redirection has changed, now it is the login page that reloads when you connect. 
I don't know where to start to fix this. It looks like sorcery.

Did you develop that site or someone else? Maybe there are some hooks in place. Did you try connecting in an incognito window (without any cookies set)?

Share this post


Link to post
Share on other sites
On 9/19/2019 at 4:10 PM, Gideon So said:

Are you sure the Apache rewrite module loads properly?

Gideon

 😁Hi ! This comment put me on the right track. It's solved.

(The incognito window didn't worked. Yes I developed the site myself but I am not a developer.)

I finally found the problem. I think the.htaccess file was incorrectly configured. I replaced it with another one and it worked. I must have changed something in there when I was trying to change my password... 

Thank you all for your help.

Anton

  • Like 2

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By VeiJari
      Hi, this is the first we are trying to make a page that has only one type of user that has access to every page. 
      The other users should only have a given access to specific pages, not to the whole template.
      My structure
      -Field -Organisation -Project -Report I want that the "measurer" role only has access to "project x" and it's children, but no view access to every project, organisation or field. I've tried to do this with https://modules.processwire.com/modules/page-edit-per-user/ but it still needs a view access to the whole tree to see the "project x" page. Or is there something I haven't figured out?
      Maybe I have to make it via the API: a select field in the "organisation" template where the admins could add the users and then I use hook to update the privileges?
      Have you done something like this and how did you accomplish it?
      Any help would be appreciated.
       
    • By Tyssen
      I have a client who is reporting that in the last couple of days they can no longer login to their site with their normal browser (Chrome). Using another browser or an incognito window works.
      I've tried logging into the site using the same login details in my usual browser (Firefox) and have had no problems.
      The site is a membership site and today other members are reporting the same problem.
      The site is running 3.0.148 and has the session handler DB and login throttle modules installed. It was recently upgraded to 3.x from 2.x. But no changes have been made to the site between the time when they were able to login OK and when the problem started happening.
    • By codevark
      The Minimal Site works fine, but if I try to login as admin, I have no idea what the credentials are.
      I did not do the "install" process myself. The OVA came with everything set up, but there's no mention of the PW admin credentials being set to some initial value.
      Wondering if anyone else has tried the Bitnami OVA and if there's a simple answer.
      --Pete
    • By neophron
      Hi there,
      I have a site with a lot of pages (more than 200, growing), where every page shows only one image.
      I noticed that in the backend of the Skyscrapers website, every page with a skyscraper has a thumbnail. I suppose, that ListerPro is behind this.
      Can I achieve this (thumbnails) only with ListerPro or are there other solutions? 

    • By franciccio-ITALIANO
      Hi, I need to provide a quite complex user registration form: description, subdescription, drop-down lists etc. 
      Through this registration, users will be able to access and comment.
      If someone responds to their comments, I would like a NOTIFICATION to appear when accessing their panel.
      My social interaction project is just that, it seems simple, I don't need more.
      Now I am undecided whether to use buddypress, elgg, or a native processwire system.
      What do you recommend? 
      If you recommend processwire, which modules should I install?
      Do they work or is processwire too immature for that?
      Translated with www.DeepL.com/Translator (free version)
×
×
  • Create New...