kohana auth Eメールでログインしてユーザー名ではありません
-
14-11-2019 - |
質問
タイトルが私の電子メールでログインしたいと言うように、私のログインはユーザー名と一緒に動作しますが、それを変更する方法が見つかりませんので、この基本的なログインコードを使用しています。
Auth::instance()->login($post['email'],$post['password'], false
.
edit すべての後、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.
所属していません StackOverflow