From 8ad48c54d7526113357d5a0e78708449f229cdd6 Mon Sep 17 00:00:00 2001 From: "florian.azizian" <florian.azizian@maarch.org> Date: Tue, 19 Nov 2019 11:10:31 +0100 Subject: [PATCH] FEAT #12163 TIME 0:10 do not display forgot password if not in standard connect --- apps/maarch_entreprise/standard_connect.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/apps/maarch_entreprise/standard_connect.php b/apps/maarch_entreprise/standard_connect.php index f3e0248400d..ff32ebffe62 100755 --- a/apps/maarch_entreprise/standard_connect.php +++ b/apps/maarch_entreprise/standard_connect.php @@ -31,11 +31,14 @@ echo '<form id="formlogin" method="post" action="' echo '<label for="pass">'._PASSWORD.'</label>'; echo '<input name="pass" id="pass" value="" type="password" />'; echo '</p>'; - echo '<p style="cursor: pointer;font-size: 11px;">'; - echo '<label> </label>'; + $loggingMethod = \SrcCore\models\CoreConfigModel::getLoggingMethod(); + if ($loggingMethod['id'] == 'standard') { + echo '<p style="cursor: pointer;font-size: 11px;">'; + echo '<label> </label>'; echo '<span onclick="triggerAngular(\'#/forgot-password\')">'._FORGOT_PASSWORD.'</span>'; - echo '</p><br>'; - echo '<p>'; + echo '</p>'; + } + echo '<br><p>'; echo '<label> </label>'; echo '<input type="submit" class="button" name="submit" value="'._CONNECT.'" />'; echo '</p>'; -- GitLab