I faced the same issue and implemented the below solution to resolve it.
Never miss Magento tips, tricks, tutorials, and news.
Thank you for subscribing.
Any doubts about this solution can be mentioned in the Comments section below.
Steps to Solve Magento 2.4.2 Admin Login Not Working on Localhost:
- Add extension=sodium to php.ini
- Copy php/libsodium.dll to apache/bin/
- Restart Server
If your admin login is not working properly after installing Magento 2.4.2 on localhost, I can relate!
I’d be happy to help.
Also, do share the post with Magento Community via social media.
Magento 2.4.2 released on February 09, 2021.
Experts recommend upgrading to the latest Magento 2 version asap in order to not only leverage the latest enhancements in performance but also improve the security of the store!
Get Weekly Updates
However, if you might have tried to install the Magento 2.4.2 in localhost and started to explore the admin panel, you may face an issue like this:
Something went wrong.
If your Magento 2.4.2 admin login is not working on localhost, it is because the libsodium extension of apache is not enabled.