UPDATE:
I checked the prefix_users table in phpMyAdmin and the user I was trying to login with has the usertype field set to deprecated
I'm running a site on Joomla 1.7, and recently I noticed I can't login to the administrator panel. I'm getting this error:
Username and password do not match or you do not have an account yet.
I know the username & password are correct because I checked the configuration.php file.
I set permissions to the configuration.php file to 0644, and I've tried setting
public $cookie_domain = 'mydomain.com';
public $cookie_path = '';
Initially it was public $cookie_domain = ''
but that didn't change anything.
I tried both mydomain.com/administrator and www.mydomain.com/adminitrator
I also tried with a private browsing session in order to avoid any local cookies that might have been stored on my computer in the past.
Note: after a failed login I'm redirected from mydomain.com/administrator to mydomain.com/administrator/index.php
SOLVED: changed usertype from deprecated to Super Administrator and then I used this MD5 hash generator to update the password.
I think it was because the encryption was wrong...
Related
As the title states, I am unable to log in to the default admin user in Magento 2.4 after installation using composer.
I have tried changing the password through PHPMyAdmin using the following command:
UPDATE admin_user SET password = CONCAT(SHA2('xxxxxxxYourNewPassword', 256), ':xxxxxxx:1') WHERE username = 'admin';
as well as the following command:
UPDATE admin_user SET password=CONCAT(MD5('qXpassword'), ':qX') WHERE username='admin';
I have also tried creating a new admin user through this command line:
php bin/magento admin:user:create --admin-user='new-admin' --admin-password='!admin123!' --admin-email='info#domain.com' --admin-firstname='Jon' --admin-lastname='Doe'
But I get the following error message nonetheless:
The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later.
I also tried to "unlock" the users using:
php bin/magento admin:user:unlock adminuser
Which printed
The user account "admin1" has been unlocked
But had no notable effect otherwise.
I have also tried clearing my browser cache and multiple browsers.
Vivalid Chrome Edge Firefox
Any help is appreciated. Many thanks in advance.
Have a great day
Reset credentials using following command
php bin/magento admin:user:create --admin-user admin --admin-password nimda1997
username:admin
password:nimda1997
The reason may be that the password strength is not meeting the security requirements
By default, in Magento 2, the password that meets security requirements must consist of:
Uppercase letters
Lowercase letters
Numeric
Special characters
Minimum of 8 characters
Run the following command in the MySQL to update password to a complex password.
UPDATE admin_user SET password = CONCAT(SHA2('xxxxxxxYourNewPassword', 256), ':xxxxxxx:1') WHERE username = 'admin';
The xxxxxxx character sequence is a cryptographic salt, it is saved in app\etc\env.php file
Note:
Use a complex password instead of YourNewPassword.
Replace admin with your username.
This solutions works if you are not able to login after upgrading to Magento 2.4.x from a lower version.
Then after try to login again, it will work.
I have read all the possible fixes for the above issue when trying to get XAMPP working. Nothing has worked and I need to find an answer to get it working for a college course.
I am running a Mac OS X 10.11.6 and downloaded the XAMPP version 5.6.40. Then I open http://localhost/phpmyadmin/ go to user accounts and change the root password on for local host.
Then I go to the file config.inc.php and change 'config' to 'cookie' and also change the password. Then I restart the servers try to log back in but it gives the above error message and doesn't let me enter credentials. Some students in my class have done it the exact same way and it has worked for them.
I have looked at and tried many possible fixes as I can but with no success.
If you are using
$cfg['Servers'][$i]['auth_type'] = 'cookie';
Then you can set the user and password to blank, as using cookie makes phpMyAdmin throw a login page where you are expected to enter the userid and password in the login dialog.
$cfg['Servers'][$i]['user'] = '';
$cfg['Servers'][$i]['password'] = '';
It would also be worth refreshing your browser cache after making this change.
Thats CRTL+F5
Dont forget to restart Apache after making this change
"Invalid User Name or Password." i try resetting the password but the email doesn't go through. I inserted the login details on the database & it still doesn't allow me to login. Please help.
try this query (in php myadmin)
UPDATE `admin_user` SET `password` = MD5('NEWPASSWORD') WHERE `username` = 'ADMINUSERNAME';
Try to delete everything inside var folder
\magento\var\
Try using the script for creating a new Admin user:
https://gist.github.com/litzinger/48be5876d6bba1509323
Next, you can restore your user from the Admin panel, and delete the one you don't need.
If the error is triggered by the issue with the frontend user, it's OK. The point is that Magento uses sample data to fill in the Users table. In this case, you should restore your database from the backup file.
open file app/code/core/Mage/Admin/Model/User.php
find function named
authenticate($username, $password)
and put
return true;
after following statement
$this->loadByUsername($username);
after that user your administartor user's username and anything in password, and try logging in. After successful Login change password from inside admin pannel.
I have successfully installed Magento 1.5.1.0 in my localhost.Then i go to admin panel and tried to login with the username and password I set, but it says wrong password.Then I clicked forgot password.It says your new password is sent to your email address. I checked the email id I used during creating the personal info. But there was no mail. It might be due to the email not firing from local server.
But my problem is how can I retrieve my admin password?
Magento stores a hashed+salted value of the password (you can't get the password back).
Your only option here is to use phpMyAdmin or the mysql shell to reset that password...
To use the MySQL shell...
Run cmd.exe and enter the mysql shell with:
mysql -u root -p
Enter your MySQL root account password.
Run query...
UPDATE `{db_name}`.`admin_user` SET `password` = CONCAT(MD5('zN{master_password}'), ':zN') WHERE `admin_user`.`user_id` = 1 LIMIT 1;
(taken from WampDeveloper's Magento installation script)
Replace in the above query {db_name} with the magento database name and {master_password} with whatever password you want to set.
To reset your admin password, you have to create a file and paste the bellow code into this file and upload it in your magento root directory.
<?php
require_once 'app/Mage.php';
umask(0);
/* not Mage::run(); */
Mage::app('default');
## For magento1.7 or Earlier var
//$_HASH_SALT_LENGTH = 2;
## For magento1.8 and magento1.9
$_HASH_SALT_LENGTH = 32;
#Generate admin password
$password = "admin1234";
echo $adminPass = Mage::helper('core')->getHash($password, $_HASH_SALT_LENGTH);
## And reset password field in "admin_user" table
?>
And that’s it, now you are able to login from admin using by this given password.
For detail about reset admin password, Please go to my blog link http://www.scriptlodge.com/how-to-reset-admin-password-in-magento/
you can't retrieve it, its stored as a secure hash. go to the database and update the relevant row in the admin_user table setting the password value with the MD5 function to a new password.
Thanks a lot for these suggestions.My problem is successfully solved.I changed the password value of "admin_user" table to a md5 converted of a known word.It worked.
But for knowledge I want to know about the hashed+salted value of the password, magento used to store for password explained by "rightstuff". Bcz I noticed that the password value of "admin_user" table was some thing like that concated ,when I clicked the forget password link.
You can't retrieve it, it's stored as a secure hash.
Go to the database and update the relevant row in the admin_user table. Go to column user password. Next go to any md5 encryptor link http://www.md5decrypt.org/. In that site give your text and encrypt by clicking on button md5 encrypt. Now copy the encrypted password and replace this password with the column present in admin_user table. Now login with your user id and new text password.
I just moved my current office Joomla 1.5.8 instalation from the server(linux) to my local machines (winxp) so I can work locally and only upload the changes.
The thing is after downloading all the files and installing a backup of the remote DB on my local machine I found myself unable to login to the administrator panel, I can see the frontpage but not login :/
So far, I have googled alot this problem, but most people seem to be experiencing this problem while upgrading from joomla 1.0
To make sure the problem was not on permissions for the files,I did a separate brand new joomla instalation on another folder and it worked just fine, I could access the website and I also could login to admin page, then I changed the config file to connect to the joomla I'm trying to move and now I find myself again unable to login :/
I think the problem is on the DB however I already tried searching for specific paths but no luck
Does anyone has another Idea?
thanks in advance :)
Try to change following variable in your local configuration file with you local values.
var $offline = '0';
var $log_path = 'Your local joomla path\logs';
var $tmp_path = 'Your local joomla path\tmp';
var $live_site = 'local url will be here';
var $dbtype = 'mysql';
var $host = 'local db host';
var $user = 'DB user for local';
var $db = 'Db name for local';
var $dbprefix = 'DB prefix whatever you have set, by default jos_';
var $password = 'your DB password for local';
You probably have LDAP or openid authentication enabled and thats what is causing this blank page while you try to login.
Just go to your database and go to your:
jos_plugins
And edit the plugins which are either openid or LDAP
set their published status from 1 to '0'
Case solved.
Does your site use any kind of extra authentication? Mine used the LDAP Authentication plugin. MY local machine couldn't connect to the LDAP server. After turning LDAP authentication off (only use Joomla authentication) it worked.
edit the jos_plugins table in mysql to set published from 1 to 0 for any extra authentication plugins you are using.
I have discussed this issue in details here: http://www.itoctopus.com/blank-page-on-joomla-login
In most cases we have seen, Joomla is trying to load a file that no longer exists.