Joomla Admin Login Password Issue:

Need help with the Administration of your Joomla! 2.5 site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
Xyos212
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Fri Feb 20, 2015 4:15 pm

Joomla Admin Login Password Issue:

Post by Xyos212 » Fri Feb 20, 2015 5:08 pm

When attempting to login to a Joomla 2.5 website, it does not accept any passwords I set. When trying to input the password it 404's or does not allow access. What we do is set it to no access. If we need to get in and make changes we take the existing code (below), we change one line of code to allow any password:

PHP file location: plugins\authentication\joomla\joomla.php

Code: Select all

			if ($crypt == $testcrypt) {
				$user = JUser::getInstance($result->id); // Bring this in line with the rest of the system
				$response->email = $user->email;
				$response->fullname = $user->name;
				if (JFactory::getApplication()->isAdmin()) {
					$response->language = $user->getParam('admin_language');
				}
				else {
					$response->language = $user->getParam('language');
				}
				$response->status = JAuthentication::STATUS_SUCCESS;
				$response->error_message = '';
			} else {
				$response->status = JAuthentication::STATUS_FAILURE;
				$response->error_message = JText::_('JGLOBAL_AUTH_INVALID_PASS');
			}
		} else {
			$response->status = JAuthentication::STATUS_FAILURE;
			$response->error_message = JText::_('JGLOBAL_AUTH_NO_USER');
^The first line we change to:
if (true /*$crypt == $testcrypt*/) {
To allow any password access while we go in and make changes.

How can I set a defined password and have it work for logging in to administer/change websites?

User avatar
xfsgpr
Joomla! Ace
Joomla! Ace
Posts: 1099
Joined: Mon Feb 14, 2011 4:02 am
Location: London

Re: Joomla Admin Login Password Issue:

Post by xfsgpr » Sat Feb 21, 2015 9:57 pm

Xyos212 wrote:
How can I set a defined password and have it work for logging in to administer/change websites?
Definitely not by hacking the Joomla Core because that only helps you to corrupt your installation.

The correct method is to change the password by going to the #_users table. this is best done by using a tool called phpmyadmin that is provided by most hosts and accessed from their cPanel.

Once the password is set, you need to make sure that it is remembered by the super user as he is likely to administer the website on a day to day basis.

All you need is the username and password of the super user. He can then login by going to:

http://your-site/administrator

Hope this gets you started.

http://forum.joomla.org/viewtopic.php?f ... 2#p3269612

Xyos212
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Fri Feb 20, 2015 4:15 pm

Re: Joomla Admin Login Password Issue:

Post by Xyos212 » Mon Feb 23, 2015 2:27 pm

xfsgpr wrote:
Xyos212 wrote:
How can I set a defined password and have it work for logging in to administer/change websites?
Definitely not by hacking the Joomla Core because that only helps you to corrupt your installation.

The correct method is to change the password by going to the #_users table. this is best done by using a tool called phpmyadmin that is provided by most hosts and accessed from their cPanel.

Once the password is set, you need to make sure that it is remembered by the super user as he is likely to administer the website on a day to day basis.

All you need is the username and password of the super user. He can then login by going to:

http://your-site/administrator

Hope this gets you started.

http://forum.joomla.org/viewtopic.php?f ... 2#p3269612

Thank you so much for the help, but I still don't quite understand. I logged into my joomla site's administrator backend (http://www.mywebsite.com/administrator/) and am at the control panel but don't see any sort of reference to any phpmyadmin tool. Is it an external extension that needs to be installed? Is it in the SQL manager?

User avatar
xfsgpr
Joomla! Ace
Joomla! Ace
Posts: 1099
Joined: Mon Feb 14, 2011 4:02 am
Location: London

Re: Joomla Admin Login Password Issue:

Post by xfsgpr » Tue Feb 24, 2015 1:48 am

PHPMyAdmin is an external tool (not part of Joomla) that is normally provided by all good hosts on this planet.

If you haven't used it then don't waste your time on it because the learning curve is quite steep and that tool is quite dangerous in the hands of people who can't use it correctly.

Sorry I don't have any other workable solution right now. It looks like you will need to hire a Joomla expert who can configure your site for optimum efficiency.


Locked

Return to “Administration Joomla! 2.5”