Skip to content

Case-insensitive Logins #1194

Answered by bennothommo
SpherAx asked this question in Q&A
Sep 3, 2024 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

@SpherAx I would certainly be happy for us to support case-insensitive username/emails across the board, if you were interested in providing a pull request for that.

However, if you just want to do it for your own project, you could create a new plugin, and then as part of the register() method in your plugin, you could overwrite the user.auth singleton bind to point to your own version of the AuthManager.

use Illuminate\Support\Facades\App;

public function register()
{
    App::singleton('user.auth', function () {
        return \Your\Plugin\Classes\AuthManager::instance();
    });
}

You would be correct, in your own implementation of the AuthManager class, you can overwrite/extend the e…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@SpherAx
Comment options

@bennothommo
Comment options

@LukeTowers
Comment options

@SpherAx
Comment options

@LukeTowers
Comment options

Answer selected by LukeTowers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants