vendredi 29 juillet 2016

Forget Password email not working laravel 5

I am using users table column name (EMAIL,PASSWORD).if i am changing to column name(email) as small letters is working fine. To Change column name(EMAIL) as caps is not working give me any suggestion. i am able to login but forget password is not working. please give any suggestion

my function in controller:

 public function postEmail(Request $request)
{
    $this->validate($request, array('email' => 'required|email'));
    $response = $this->passwords->sendResetLink($request->only('EMAIL'), function ($m) {
        $m->subject($this->getEmailSubject());
    });
    switch ($response) {
        case PasswordBroker::RESET_LINK_SENT:
            return redirect()->back()->with('status', trans($response));
        case PasswordBroker::INVALID_USER:
            return redirect()->back()->withErrors(array('email' => trans($response)));
    }
}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire