Andylaser Member Jun 15, 2019 #1 Following a PC crash & rebuild and getting myself a new phone, I seem to have managed to have locked myself out of my own admin account on my forum. I have access to server and database, is there an easy way I can get myself back in again?
Following a PC crash & rebuild and getting myself a new phone, I seem to have managed to have locked myself out of my own admin account on my forum. I have access to server and database, is there an easy way I can get myself back in again?
Ozzy47 Well-known member Jun 15, 2019 #2 Add this to your src/config.php file: $config['enableTfa'] = false; Upvote 0 Downvote
Andylaser Member Jun 16, 2019 #3 Thanks. How/where do I find that file? I have looked but cant see it anywhere. Upvote 0 Downvote
Ozzy47 Well-known member Jun 16, 2019 #4 Look in the same place your XF files are at, find the folder src then in that folder is the config.php file. Upvote 0 Downvote
Look in the same place your XF files are at, find the folder src then in that folder is the config.php file.
Andylaser Member Jun 16, 2019 #5 Thanks. I am using phpMyAdmin. I have found the xf files down the left side of the window, but cant find one called src I should point out that I find understanding software somewhere between voodoo and Chinese Upvote 0 Downvote
Thanks. I am using phpMyAdmin. I have found the xf files down the left side of the window, but cant find one called src I should point out that I find understanding software somewhere between voodoo and Chinese
Ozzy47 Well-known member Jun 16, 2019 #6 You need to use a FTP to access files and folders. src is a folder, not a file. config.php is in the src folder. Upvote 0 Downvote
You need to use a FTP to access files and folders. src is a folder, not a file. config.php is in the src folder.
Andylaser Member Jun 16, 2019 #7 Excellent. That worked. Many thanks for your help and guidance. Upvote 0 Downvote
Paul B XenForo moderator Staff member Jun 16, 2019 #9 Once you have regained access, ensure you remove that line from the config.php file, otherwise 2FA will not work for anyone. Upvote 0 Downvote
Once you have regained access, ensure you remove that line from the config.php file, otherwise 2FA will not work for anyone.