diff --git a/SRC/app/Http/Controllers/LoginController.php b/SRC/app/Http/Controllers/LoginController.php index a67f490..c4e8321 100755 --- a/SRC/app/Http/Controllers/LoginController.php +++ b/SRC/app/Http/Controllers/LoginController.php @@ -68,12 +68,12 @@ class LoginController extends Controller { public function initPassword() { - switch ($response = Password::remind(Input::only('email'))) + switch ($response = Password::sendResetLink(Input::only('email'))) { case Password::INVALID_USER: - return redirect('forgotten')->withErrors($response)->withInput(); + return redirect('forgotten')->withErrors("Mail Invalide !")->withInput(); case Password::REMINDER_SENT: - return redirect('forgotten')->withStatus($response)->withInput(); + return redirect('forgotten')->withStatus("Mail de réinitialisation envoyée !")->withInput(); } } diff --git a/SRC/config/auth.php b/SRC/config/auth.php index 1903ca5..5b436aa 100755 --- a/SRC/config/auth.php +++ b/SRC/config/auth.php @@ -15,7 +15,7 @@ return [ | */ - 'driver' => 'database', + 'driver' => 'eloquent', /* |-------------------------------------------------------------------------- diff --git a/SRC/config/mail.php b/SRC/config/mail.php index 6f9c954..35c5997 100755 --- a/SRC/config/mail.php +++ b/SRC/config/mail.php @@ -28,7 +28,7 @@ return [ | */ - 'host' => 'smtp.mailgun.org', + 'host' => 'smtp.gmail.com', /* |-------------------------------------------------------------------------- @@ -54,7 +54,7 @@ return [ | */ - 'from' => ['address' => null, 'name' => null], + 'from' => ['address' => "modulewebl3miashs@gmail.com", 'name' => "moduleWeb"], /* |-------------------------------------------------------------------------- @@ -80,7 +80,7 @@ return [ | */ - 'username' => null, + 'username' => "modulewebl3miashs@gmail.com", /* |-------------------------------------------------------------------------- @@ -93,7 +93,7 @@ return [ | */ - 'password' => null, + 'password' => env('MAIL_PASSWD', ''), /* |-------------------------------------------------------------------------- diff --git a/SRC/init/table.sql b/SRC/init/table.sql index fc9a51e..fab9dd5 100644 --- a/SRC/init/table.sql +++ b/SRC/init/table.sql @@ -97,8 +97,7 @@ CREATE TABLE oeuvre ( idtechnique INT, iddomaine INT, idmatiere INT, - titre INT, - urlPhoto INT, + urlPhoto VARCHAR(50), PRIMARY KEY (idoeuvre), FOREIGN KEY (idtechnique) REFERENCES technique(idtechnique), FOREIGN KEY (iddomaine) REFERENCES domaine(iddomaine), @@ -168,4 +167,4 @@ CREATE TABLE password_resets ( email VARCHAR(255), created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (token) -); +); \ No newline at end of file