Search code examples
kohanakohana-auth

Kohana Auth login with email not username


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


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.