Jump to content

Accidentally deleted config.php! Don't know userAuthSalt, Now what...!?


douglas81
 Share

Recommended Posts

Agh!

Developing a site and really stupidly deleted the site/config.php file. Don't ask me how, I'm not quite sure.

Anyway, I don't have a log of the userAuthSalt. I guess I need to generate a new one and also new passwords?

Any advice much, much appreciated.

Link to comment
Share on other sites

Hi douglas81,

I'm not an expert on this, but i think what I might try in this case would be to:

1.) rebuild your config.php - maybe from a vanilla install, or another site;

2.) change the password of the superadmin from the API, which would then presumably use the new userAuthSalt;

<?php
$admin = $users->get('admin'); // username of superadmin
$admin->of(false);
$admin->pass = 'yo12345'; // put in your new password
$admin->save();
  • Like 3
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...