문제

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

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top