diff --git a/htdocs/core/templates/login.tpl b/htdocs/core/templates/login.tpl index c2cb03b76a2..cccb767cb83 100644 --- a/htdocs/core/templates/login.tpl +++ b/htdocs/core/templates/login.tpl @@ -64,6 +64,7 @@ function donnefocus() {ldelim}
{if $smarty.session.dol_loginmesg} diff --git a/htdocs/theme/phones/iphone/templates/login.tpl b/htdocs/theme/phones/iphone/templates/login.tpl index 06f11eaa352..c574f3ae341 100644 --- a/htdocs/theme/phones/iphone/templates/login.tpl +++ b/htdocs/theme/phones/iphone/templates/login.tpl @@ -91,7 +91,7 @@ - + {if $dol_loginmesg} diff --git a/htdocs/user/passwordforgotten.php b/htdocs/user/passwordforgotten.php index a05e11ac625..1e0996abf9c 100644 --- a/htdocs/user/passwordforgotten.php +++ b/htdocs/user/passwordforgotten.php @@ -48,12 +48,15 @@ $langs->load("users"); $langs->load("companies"); $langs->load("ldap"); +if ($conf->global->MAIN_SECURITY_DISABLEFORGETPASSLINK) + accessforbidden(); + $action=isset($_GET["action"])?$_GET["action"]:$_POST["action"]; $mode=$dolibarr_main_authentication; if (! $mode) $mode='http'; -if ($conf->global->MAIN_SECURITY_DISABLEFORGETPASSLINK) - accessforbidden(); +$login = isset($_POST["username"])?$_POST["username"]:''; +$conf->entity = isset($_POST["entity"])?$_POST["entity"]:1; /** @@ -148,176 +151,301 @@ if ($_POST["action"] == 'buildnewpassword' && $_POST["username"]) /* * Affichage page */ - -$conf->css = "theme/".$conf->theme."/".$conf->theme.".css"; -// Si feuille de style en php existe -if (file_exists(DOL_DOCUMENT_ROOT.'/'.$conf->css.".php")) $conf->css.=".php"; - -header('Cache-Control: Public, must-revalidate'); - -print ''."\n"; - -// En tete html -print "\n"; -print "\n"; -print ''."\n"; -print ''."\n"; // Evite indexation par robots -print "| ';
-if (($mode == 'dolibarr' || $mode == 'dolibarr_mdb2') || (! $disabled))
-{
- print ''.$langs->trans("SendNewPasswordDesc").''."\n";
-}
-else
-{
- print ' '.$langs->trans("AuthenticationDoesNotAllowSendNewPassword",$mode).' '."\n";
-}
-print ' |
| '; - print $message.' |
| {$title} |
| {$langs->trans('Login')} | ++ | + +
+ |
+||
| {$langs->trans('Entity')} | ++ {$select_entity} + | |||
| {$langs->trans('SecurityCode')} | +
+
+
| |||
+ + | ||||
|
+
+ {if ($mode == 'dolibarr' || $mode == 'dolibarr_mdb2') || (! $disabled)}
+
+ {$langs->trans('SendNewPasswordDesc')}
+
+ {else}
+
+ {$langs->trans('AuthenticationDoesNotAllowSendNewPassword', $mode)}
+
+ {/if}
+
+ |
|
+ {$langs->trans('BackToLoginPage')}
+
+
+
+ + + + + + + \ No newline at end of file |