diff --git a/htdocs/langs/en_US/users.lang b/htdocs/langs/en_US/users.lang index 1408681505a..9acc4d0cb68 100755 --- a/htdocs/langs/en_US/users.lang +++ b/htdocs/langs/en_US/users.lang @@ -63,4 +63,6 @@ UsersToAdd=Users to add to this group GroupsToAdd=Groups to add to this user NoLogin=No login CreateDolibarrLogin=Create Dolibarr account -TasksHistoryForThisContact=Tasks history for this contact \ No newline at end of file +TasksHistoryForThisContact=Tasks history for this contact +LoginAccountDisable=Account disable, put a new login to activate it. +ErrorFailedToSaveFile=Error - Failed to save file \ No newline at end of file diff --git a/htdocs/langs/fr_FR/users.lang b/htdocs/langs/fr_FR/users.lang index f91291f72bd..33d307aa79b 100755 --- a/htdocs/langs/fr_FR/users.lang +++ b/htdocs/langs/fr_FR/users.lang @@ -64,3 +64,5 @@ GroupsToAdd=Groupes NoLogin=Pas de login CreateDolibarrLogin=Créer un compte Dolibarr TasksHistoryForThisContact=Historique des actions pour ce contact +LoginAccountDisable=Le compte est désactivé, mettre un nouveau login pour l'activer. +ErrorFailedToSaveFile=Erreur - l'enregistrement du fichier a échoué diff --git a/htdocs/user/fiche.php b/htdocs/user/fiche.php index 6fbb3c3ddfd..f8c9a898834 100644 --- a/htdocs/user/fiche.php +++ b/htdocs/user/fiche.php @@ -3,6 +3,7 @@ * Copyright (C) 2002-2003 Jean-Louis Bergamo * Copyright (C) 2004-2005 Laurent Destailleur * Copyright (C) 2004 Eric Seigne + * Copyright (C) 2005 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -399,7 +400,13 @@ else print "\n"; print ''.$langs->trans("Login").''; - print ''.$fuser->login.''; + if ($fuser->login) + { + print ''.$fuser->login.''; + } + else + { + print ''.$langs->trans("LoginAccountDisable").''; print ''.$langs->trans("EMail").''; print ''.$fuser->email.''; @@ -471,17 +478,17 @@ else print ''.$langs->trans("Edit").''; } - if ($user->id == $_GET["id"] or $user->admin) + if ($user->id == $_GET["id"] or $user->admin && $fuser->login) { print ''.$langs->trans("ReinitPassword").''; } - if (($user->id == $_GET["id"] or $user->admin) && $fuser->email) + if (($user->id == $_GET["id"] or $user->admin) && $fuser->email && $fuser->login) { print ''.$langs->trans("SendNewPassword").''; } - if ($user->id <> $_GET["id"] && $user->admin) + if ($user->id <> $_GET["id"] && $user->admin && $fuser->login) { print ''.$langs->trans("DisableUser").''; }