XF 2.2 Lost Admin PW

So I have a "lost admin password" thread slightly different than everyone else! go me on this fail

I've uploaded an old backup of my XF forum from a year ago... However, the domain name/board URL that was set to it - is now a different site. So my plan was to log into the admin CP on XF and change the board URL to my new one. But apparently have lost the password to the old XF Admin CP. I've gone ahead and tried so many passwords I've locked my account and I am unable to use /forgotpassword/ because the board is set to my current website URL (so it just takes me to my WP page).

Any ideas on how I can go about either recovering my old password, changing the old password, or creating a new admin account?

Thanks in advance ;D
 
The password you use to log in to the ACP is the same one you use to log in to the front end of the site.

You can temporarily change the Board URL by editing the config.php file:

PHP:
 $c->extend('options', function(\ArrayObject $options)
{
    $options->boardUrl = 'https://domain.com';
    $options->boardUrlCanonical = false;
    return $options;
});

That should allow you to do a password reset.
 
The password you use to log in to the ACP is the same one you use to log in to the front end of the site.

You can temporarily change the Board URL by editing the config.php file:

PHP:
 $c->extend('options', function(\ArrayObject $options)
{
    $options->boardUrl = 'https://domain.com';
    $options->boardUrlCanonical = false;
    return $options;
});

That should allow you to do a password reset.
So apparently I cant do that as I was using aMember at the time and no longer have that plugin.
Running into:

Oops! We ran into some problems.​

The requested page could not be found.


Changing the board URL did however work. Thank you!
 
It's not the first time we have had reports of that add-on causing this issue.

Contact the add-on developer - they may have a workaround.
 
It's not the first time we have had reports of that add-on causing this issue.

Contact the add-on developer - they may have a workaround.
Okay figured it out all thanks to your response here and in another thread.

So for anyone that ever experiences this issue use Brogan's code that changes the board url in config.php
Code:
PHP:
 $c->extend('options', function(\ArrayObject $options)
{
    $options->boardUrl = 'https://domain.com';
    $options->boardUrlCanonical = false;
    return $options;
});

From there use Brogans code I found in another thread to change your password in your phpmyadmin:

Code:
UPDATE xf_user_authenticate
SET data = BINARY
    CONCAT(
        CONCAT(
            CONCAT('a:3:{s:4:"hash";s:40:"', SHA1(CONCAT(SHA1('new-password'), SHA1('salt')))),
            CONCAT('";s:4:"salt";s:40:"', SHA1('salt'))
        ),
        '";s:8:"hashFunc";s:4:"sha1";}'
    ),
scheme_class = 'XF:Core'
WHERE user_id = 1;


That got me in! Thanks so much for the help!
 
Hello

For my main site admin i.d. my lost password email is not coming through to my 1 and only forum email address. What could be wrong?

Actual email is working
 
Top Bottom