X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fchange_current_user_password.php;h=d38f96cd2b3a679e2ca3ba0c61f1e5e562e70bb9;hb=18ccf94f0421e7693bc40e177732a3f937b54d1a;hp=abfd8529f43c6647533708b1738a06208677c211;hpb=d2bd6087025dfd8497777f6ce2305ff98879473a;p=fa-stable.git diff --git a/admin/change_current_user_password.php b/admin/change_current_user_password.php index abfd8529..d38f96cd 100644 --- a/admin/change_current_user_password.php +++ b/admin/change_current_user_password.php @@ -1,13 +1,13 @@ . + See the License here . ***********************************************************************/ $page_security=1; $path_to_root=".."; @@ -55,8 +55,12 @@ if (isset($_POST['UPDATE_ITEM'])) if (can_process()) { - update_user_password($_POST['user_id'], md5($_POST['password'])); - display_notification(_("Your password has been updated.")); + if ($allow_demo_mode) { + display_warning(_("Password cannot be changed in demo mode.")); + } else { + update_user_password($_POST['user_id'], md5($_POST['password'])); + display_notification(_("Your password has been updated.")); + } $Ajax->activate('_page_body'); } }