Tuesday, January 18, 2022

[FIXED] Cakephp 3.X Auth Component Signin with multiple fields

Issue

I want to make user login with two fields i.e. username and email. Check if username or email is matching and verify password. Is it possible.


Solution

Use The MultiColumn authenticate adaptor from this plugin:

https://github.com/friendsofcake/authenticate#multicolumnauthenticate



Answered By - José Lorenzo Rodríguez

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.