Prévisualisation avatar
This commit is contained in:
parent
31d21de38a
commit
0b6bfb5854
@ -101,13 +101,13 @@ class LoginController extends Controller {
|
|||||||
switch ($response)
|
switch ($response)
|
||||||
{
|
{
|
||||||
case Password::INVALID_PASSWORD:
|
case Password::INVALID_PASSWORD:
|
||||||
return Redirect::back()->withErrors("Mot de passe non valide")->withInput();
|
return Redirect::back()->withErrors("Votre mot de passe est invalide. Essayez-en un autre.")->withInput();
|
||||||
case Password::INVALID_TOKEN:
|
case Password::INVALID_TOKEN:
|
||||||
return Redirect::back()->withErrors("Clé invalide")->withInput();
|
return Redirect::back()->withErrors("Erreur de token, contactez l'administrateur, merci.")->withInput();
|
||||||
case Password::INVALID_USER:
|
case Password::INVALID_USER:
|
||||||
return Redirect::back()->withErrors("Utilsateur invalide")->withInput();
|
return Redirect::back()->withErrors("Utilsateur invalide")->withInput();
|
||||||
default :
|
default :
|
||||||
return Redirect::to('/login')->withStatus("Votre mot de passe réinitialisé avec succès !");
|
return Redirect::to('/login')->withStatus("Votre mot de passe a été changé avc succès !");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,13 +66,13 @@ class ReferentController extends Controller {
|
|||||||
$user->image = "imgs/avatar/" . $idUser . "." . $extension;
|
$user->image = "imgs/avatar/" . $idUser . "." . $extension;
|
||||||
$user->save();
|
$user->save();
|
||||||
|
|
||||||
return redirect('/referent')->with('message_update', 'Referent mis à jour avec succès');
|
return redirect('/referent')->with('message', 'Votre compte a été mit à jour avec succès.');
|
||||||
} else
|
} else
|
||||||
$user->save();
|
$user->save();
|
||||||
return redirect('/referent')->with('message_update', 'Votre image n\'est pas valide.');
|
return redirect('/referent')->with('erreur', 'Votre image n\'est pas valide.');
|
||||||
} else {
|
} else {
|
||||||
$user->save();
|
$user->save();
|
||||||
return redirect('/referent')->with('message_update', 'Referent mis à jour avec succès');
|
return redirect('/referent')->with('message', 'Votre compte a été mit à jour avec succès.');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BIN
SRC/public/imgs/avatar/8.jpg
Normal file
BIN
SRC/public/imgs/avatar/8.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 617 KiB |
BIN
SRC/public/imgs/avatar/8.png
Normal file
BIN
SRC/public/imgs/avatar/8.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 417 KiB |
@ -31,6 +31,8 @@
|
|||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||||
<h4 class="modal-title" id="myModalLabel">Informations personnelles</h4>
|
<h4 class="modal-title" id="myModalLabel">Informations personnelles</h4>
|
||||||
</div>
|
</div>
|
||||||
|
<div style="margin:auto;width:120px; height: 120px; border-radius:50%;background-size:cover;background-position: center center;
|
||||||
|
background-image:url('{{$me->image}}')"></div>
|
||||||
<form class="form-horizontal" role="form" action="{{ URL::to('referent/update') }}" method="post" enctype="multipart/form-data">
|
<form class="form-horizontal" role="form" action="{{ URL::to('referent/update') }}" method="post" enctype="multipart/form-data">
|
||||||
<input type="hidden" name="_token" value="{{{ csrf_token() }}}" />
|
<input type="hidden" name="_token" value="{{{ csrf_token() }}}" />
|
||||||
<input type="hidden" name="idUser" value="{{ $me->id }}" />
|
<input type="hidden" name="idUser" value="{{ $me->id }}" />
|
||||||
|
Reference in New Issue
Block a user