From 7096f0c23691a8e9118667a7ea9b9e9bd593b345 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 3 Apr 2023 23:23:51 +0200 Subject: [PATCH] Fix css --- htdocs/core/tpl/passwordforgotten.tpl.php | 6 ++++-- htdocs/core/tpl/passwordreset.tpl.php | 8 +++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/htdocs/core/tpl/passwordforgotten.tpl.php b/htdocs/core/tpl/passwordforgotten.tpl.php index 27ab617636b..5b418f63541 100644 --- a/htdocs/core/tpl/passwordforgotten.tpl.php +++ b/htdocs/core/tpl/passwordforgotten.tpl.php @@ -238,21 +238,23 @@ if (!empty($morelogincontent)) { -
global->MAIN_LOGIN_BACKGROUND) ? '' : ' backgroundsemitransparent boxshadow').'" style="max-width: 70%">'; print ''; print $langs->trans('SendNewPasswordDesc'); print ''; + print '
'; } } else { + print '
'; print '
'; print $langs->trans('AuthenticationDoesNotAllowSendNewPassword', $mode); print '
'; + print '
'; } ?> -
diff --git a/htdocs/core/tpl/passwordreset.tpl.php b/htdocs/core/tpl/passwordreset.tpl.php index e1368c0d3ee..32500cc38ab 100644 --- a/htdocs/core/tpl/passwordreset.tpl.php +++ b/htdocs/core/tpl/passwordreset.tpl.php @@ -117,7 +117,7 @@ if ($setnewpassword && $username && $passworduidhash) { ?> - + global->MAIN_LOGIN_BACKGROUND) ? '' : ' style="background-size: cover; background-position: center center; background-attachment: fixed; background-repeat: no-repeat; background-image: url(\''.DOL_URL_ROOT.'/viewimage.php?cache=1&noalt=1&modulepart=mycompany&file='.urlencode('logos/'.$conf->global->MAIN_LOGIN_BACKGROUND).'\')"'; ?>> @@ -278,21 +278,23 @@ if (!empty($morelogincontent)) { -
global->MAIN_LOGIN_BACKGROUND) ? '' : ' backgroundsemitransparent boxshadow').'" style="max-width: 70%">'; print ''; print $langs->trans('EnterNewPasswordHere'); print ''; + print '
'; } } else { + print '
'; print '
'; print $langs->trans('AuthenticationDoesNotAllowSendNewPassword', $mode); print '
'; + print '
'; } ?> -