jen

All user/passwords do not work anymore

Recommended Posts

jen    0

Yesterday we somehow lost access to all current admin, superuser/passwords to processwire.  We tried using the reset password form and nothing was sent.  We began noticing some of the menu buttons went missing as well as some photos.  Any suggestions how to resolve the login issue?

 

 

Share this post


Link to post
Share on other sites
rick    329

Howdy @jen, and welcome to the forums.

First, you can use this RESET to gain access to the admin page. Then we can proceed from there.

  • Like 3

Share this post


Link to post
Share on other sites
jen    0

Thank you.  

We tried that earlier using different user names and none worked.  

Is there any other options?

Share this post


Link to post
Share on other sites
szabesz    1,381
9 hours ago, jen said:

We began noticing some of the menu buttons went missing as well as some photos.

Something (someone?) must have changed your site I guess. Loosing all passwords and at the same time you have a site that "somehow" changed? Do you have a backup?

BTW, more troubleshooting tips can be found here, for example: 

 

  • Like 2

Share this post


Link to post
Share on other sites
arjen    1,079

When all passwords won't work anymore at the same time I'm pretty sure someone changed the salt in the /site/config.php. 

595a302ce3b5f_ScreenShot2017-07-03at13_52_28.png.a5bdd670135231c83400ca028c6d5327.png

Otherwise find a superuser in the 'pages' table in phpMyAdmin or another databasetool and try to reset it.

  • Like 2

Share this post


Link to post
Share on other sites
szabesz    1,381
37 minutes ago, arjen said:

someone changed the salt

I was thinking of it too, but even in that case the password reset should work but he reported the opposite.

Share this post


Link to post
Share on other sites
rick    329
10 minutes ago, szabesz said:

I was thinking of it too, but even in that case the password reset should work but he reported the opposite.

require "index.php";
$admin = $users->get('admin'); // or whatever your username is
$admin->setAndSave('pass', 'yo123456');
$session->redirect($config->urls->admin);

@jen, something else is happening that we don't know about. Do you get any error messages? 404 page? Do y'all know the admin url?

Edited by rick
accidentally saved before completed.
  • Like 1

Share this post


Link to post
Share on other sites
arjen    1,079
5 hours ago, szabesz said:

I was thinking of it too, but even in that case the password reset should work but he reported the opposite.

Agree, but are we sure the right script has been executed with the right usernames? Perhaps they don't know the right usernames and therefore it seems like it won't work. I would suggest looking up in the database. Assumptions ... :) 

@jen, where did you execute the reset script? Did you get any errors? 

 

  • 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 Slav
      Hey guys... Ok so I have a problem with a registration form password inputfield... The problem is that InputfieldPassword.js and InputfieldPassword.css are not loaded/fired. Or I dont even know exactly what is happening... Im pretty new to processwire and the website was not created by me so Im trying to figure out what has been done and how processwire works. Anyway this is how the form looks right now:

      ...and as you can see the styling is off (password validation check in particular)... this is what I see when page is loaded (without adding any input)... it looks like js and css files from wire/modules/Inputfield/InputfieldPassword are not firing... I dont know how it is supposed to work exactly so I dont even know where to start.
      Maybe someone has had similar problem and know an easy fix or can navigate me to what could cause this situation in PW.
      Oh by the way this problem occured when upgrading the PW version (current version 3.0.65)... everything else is ok... this is the only problem that has been found after upgrade...
      Appreciate all the help!
      Cheers!
    • By modifiedcontent
      I have a simple front-end password update form like this:
      In the browser the label of the second field shows up as follows:
      WTH?!
      I can't figure out what is changing the label, what is inserting /processwire/ and reformatting the thing. Is this something in PW? A "helpful" thing that browsers do?
      Edit:
      The problem disappears if I simply rename the second field to 'Confirm Password'.
      So my problem is solved, but I'll leave this here in case this is some kind of bug.
    • By modifiedcontent
      How do you get the same 'set password' form/input fields on the front-end as in the admin area?
      I have a working front-end version, but the admin version has some nifty stuff around it. Should be easy to get the same on the front-end, right?
    • By didhavn
      Hey all.
      I just came across a potential error in the FieldtypePassword.
      I have a password field added to some templates to protect the pages. However, whenever I want to save a page, I get the error of "required fiield missing"...that the password field is required and missing. But, the field is not set to required.
      Can anybody confirm that and/or has a solution?
      Best, Lukas

    • By Doc
      Hello,
      Newbie question here.
      I'm rebuilding my existing website with PW, it's a game where people can guess the winners of races.
      I used to have a "players" table. Those are registered players, I used to identify them through their login/password, and when it matches, I give them access to the website. No rocket science.
      So now with PW, I'm building my sign-up form and I'm trying to create a new session when a new user sign up.
      I'm retrieving user/pass from the sign-up form which has been posted before but :
      if($session->login($user, $pass)) {
          // login successful
          $session->redirect(elsewhere);
      }
      else
          echo "failed";
      ... fails everytime.
      Do I have to use something like :
      $u = new User(); $u->name = "bill"; $u->pass = "billpwd"; $u->addRole("guest"); $u->save(); ... before doing a session->login('bill', 'billpwd') ?? (I've just checked, it works, so I guess this is the good way to do it ?)
      I already have my players table so perhaps I can have the minimum in the PW's table and keep my players info in my historical table ?
      ... Or I can add all information I need into PW but I'd like to understand where it is stored.
      Last question, if there is a PW matching between "user" and "session", I need to give to the session->login function the password not hashed. I'm using the password_hash php function, any problem with that ?
      Thanks