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:
parent
2d89d56e8f
commit
ebfb765bba
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'driver' => 'database',
|
||||
'driver' => 'eloquent',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
@ -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', ''),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
@ -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)
|
||||
);
|
||||
);
|
Reference in New Issue
Block a user