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 '
'; } ?> -