所以当标题说我想用我的电子邮件登录,而不是用户名,现在我的登录与用户名一起工作,但我找不到改变的方法,所以我正在使用这个基本的登录代码:

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

编辑毕竟这是我的错,似乎Kohana让我登录使用用户名和电子邮件,我在我的其他脚本中有错误

有帮助吗?

解决方案

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