Commit 13f88250 authored by okhin's avatar okhin 🚴

Merge branch...

Merge branch '73-erreur-403-en-cas-de-tentative-de-don-et-d-utilisateurice-non-existantes' into 'preprod'

Resolve "Erreur 403 en cas de tentative de don et d'utilisateurice non existantes"

Closes #73

See merge request !65
parents 48fd5420 bbcaa7f6
Pipeline #2269 passed with stages
in 14 seconds
......@@ -108,7 +108,7 @@ class Campaign extends Controller
$user = $f3->get('container')['user_finder']->findByEmail(\Utils::asl($email));
if (count($user) > 0) {
if (count($user) > 0 && is_array($user)) {
// We have an existing user, we should try to login with the provided password
// or 403.
$mapper = new \DB\SQL\Mapper($f3->get('DB'), 'users');
......
......@@ -8,6 +8,7 @@
<div class="row">
<check if="{{ @ERROR.code == 403 }}">
<div class="col-md-5 col-md-offset-1 well light-blue">
<h2><span>{{ @ERROR.code }} - {{ @ERROR.status }}</span></h2>
{{ _("Accès refusé.<br>Votre mot de passe est invalide.") }}
</div>
<div class="col-md-5 well sky-blue">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment