Question

So as the title says i want to login with my email, not username, now my login works with username, but i can't find a way to change that, so i'm using this basic login code:

Auth::instance()->login($post['email'],$post['password'], false

EDIT After all it was my fault it seems that kohana let's me login using username and email, i had errors in my other script

Was it helpful?

Solution

Your login will work with both username and email by default.

If you input a valid email, email field will be compared instead of the username.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top