Magento. Can't login Admin, after domain move - magento

Just had Magento moved from one domain to another, but can't log in the admin, even though I could earlier in the day.
I have full access to the DB via PHPmyAdmin.

Fixed. Changed the password to MD5 within the database and it seems to let me in.

Related

Getting "Invalid User Name or Password" error after moving Magento 1.9 to new server

I moved Magento website from old to the new server using the following steps:
1. Export database and Search & Replace old domain URL in the editor.
2. Zip all Magento root files and upload on the new server using FTP.
3. Change the database name and user information in the app/etc/local.xml file.
Now website frontend working perfectly fine on the new server and I can also access the admin login page but my login credentials are not working.
Login credentials working fine on the old server but getting "Invalid User Name or Password" error on the new server.
I removed cache files from var/cache folder but still no luck.
Am I missing something?
Thanks
Cannot yet comment. Two things I can think of:
The cookie domain not being set to the appropriate value.
Using a different crypt value in local.xml
You can also try to set a new admin password directly in the database (you should backup the old value). Admin users are stored in admin_user. Magento 1.x saves the password as MD5 hashes, so you should be able to set a new password with md5(PASSWORD).
there was no admin_user in the database with my mail adres connected to. So i changed the mail adress in the database from on of the current admin_users through phpmyadmin. and then pressed "forgot my password" and filled in the new mailadres. Then i got a reset password in my mailbox. and it worked.

Deleting admin account in ObjectGears

After starting ObjectGears the first time I created administrator as the first user. I configured everything with this user and then imported other users.
Now I do not know if I can delete this user. I do not want to lose admin access.
You can delete it. The fact that some account is admin is set in the file web.configu in the parameter AdminLogins. So admin can be anybody who has the account included here.
You can also leave this parameter blank and then nobody will be able to change any configuration in the instance, supposing you also delete model owners.

Laravel 4 auth login fails after ftp upload

I have been working on a website on my local pc.
I made an admin area where users have to login.
I uploaded the project to a shared hosting using ftp and copied the database.
Everything should be exactly the same, but login keeps failing.
Database is connected and the website works, I just cant get to the admin area.
In app/config/session.php the domain setting is null.
All others settings (except for DB connection) are exactly the same.
Is there something I missed here?

Magento Password Reset Link

We run a multi-store/view magento site. Let's say our site is called www.domain.com (running the "retail" store) and another url trade.domain.com running the "trade" store
When a customer requests a password reset from trade.domain.com, they get a password reset link like this: http://trade.domain.com/customer/account/resetpassword/?id=12&token=84fb6f65548995191e526b815982bf23
Clicking this link re-directs to login page with the error Your password reset link has expired..
However, if you replace the "trade" from the domain with "www" like this: http://www.domain.com/customer/account/resetpassword/?id=12&token=84fb6f65548995191e526b815982bf23
The password reset appears to be working correctly.
Any idea why this is happening? Have I configured the magento incorrectly? Is this a known bug?
Customers are shared either per website, either across all websites, so at least, a customer account is usable on all of the store views that a website contains. Consequently, it is normal that the password reset link works for your store views.
In fact, if you would like to separate the customer accounts between your store views, you would have to create separate websites that would not share customers.
Is that subdomain password protected? That could be a problem or if subdomain is set up with a password protected extension, they won't be able to access example.com/customer/account/changeforgotten/ without already being logged in. So you'll have to allow them access to that url first otherwise it'll keep redirecting. I had the same problem.
Check the cookie domain for the website trade.domain.com. In Magento 1 it's in System->Configuration->Web->Session Cookie Management. (Making sure that you change the scope in the top left to the Website you want to update it for.
I have a store that has multiple websites, each with their own view and does not share accounts across websites, and had the same problem. Changing the cookie path fixed it for me.

Magento customers associated to website "Admin"

What is the purpose of having a customer Associated to Website "admin" in magento instead of the normal default website, etc? I cant seem to find the logic of why that exists.
I think it is only based on where the customer was created. The weird thing is I know if you do something like a forgot password attempt on one website but your account was associated to another it will redirect you to the other one. I assume if the store id is 0 it will just redirect you the the current one.

Resources