modifié : SRC/app/Http/Controllers/LoginController.php

modifié :         SRC/config/auth.php
	modifié :         SRC/config/mail.php
	modifié :         SRC/init/table.sql
This commit is contained in:
sidya82 2015-02-18 19:29:51 +01:00
parent 2d89d56e8f
commit ebfb765bba
4 changed files with 10 additions and 11 deletions

View File

@ -68,12 +68,12 @@ class LoginController extends Controller {
public function initPassword() public function initPassword()
{ {
switch ($response = Password::remind(Input::only('email'))) switch ($response = Password::sendResetLink(Input::only('email')))
{ {
case Password::INVALID_USER: case Password::INVALID_USER:
return redirect('forgotten')->withErrors($response)->withInput(); return redirect('forgotten')->withErrors("Mail Invalide !")->withInput();
case Password::REMINDER_SENT: case Password::REMINDER_SENT:
return redirect('forgotten')->withStatus($response)->withInput(); return redirect('forgotten')->withStatus("Mail de réinitialisation envoyée !")->withInput();
} }
} }

View File

@ -15,7 +15,7 @@ return [
| |
*/ */
'driver' => 'database', 'driver' => 'eloquent',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

View File

@ -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', ''),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

View File

@ -97,8 +97,7 @@ CREATE TABLE oeuvre (
idtechnique INT, idtechnique INT,
iddomaine INT, iddomaine INT,
idmatiere INT, idmatiere INT,
titre INT, urlPhoto VARCHAR(50),
urlPhoto INT,
PRIMARY KEY (idoeuvre), PRIMARY KEY (idoeuvre),
FOREIGN KEY (idtechnique) REFERENCES technique(idtechnique), FOREIGN KEY (idtechnique) REFERENCES technique(idtechnique),
FOREIGN KEY (iddomaine) REFERENCES domaine(iddomaine), FOREIGN KEY (iddomaine) REFERENCES domaine(iddomaine),
@ -168,4 +167,4 @@ CREATE TABLE password_resets (
email VARCHAR(255), email VARCHAR(255),
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (token) PRIMARY KEY (token)
); );