Project

General

Profile

Bug #9259 » diff_usermanager.txt

Martin VENÇON, 05/07/2020 04:29 AM

 
1
diff --git a/src/usr/local/www/system_usermanager.php b/src/usr/local/www/system_usermanager.php
2
index 272dd8c9fe..e64a884fc6 100644
3
--- a/src/usr/local/www/system_usermanager.php
4
+++ b/src/usr/local/www/system_usermanager.php
5
@@ -36,6 +36,7 @@
6
 ##|*MATCH=system_usermanager.php*
7
 ##|-PRIV
8

    
9
+require_once("auth.inc");
10
 require_once("certs.inc");
11
 require_once("guiconfig.inc");
12
 require_once("pfsense-utils.inc");
13
@@ -481,6 +482,11 @@ if ($_POST['save'] && !$read_only) {
14
                local_user_set_groups($userent, $_POST['groups']);
15
                local_user_set($userent);
16
                $savemsg = sprintf(gettext("Successfully %s user %s"), (isset($id)) ? gettext("edited") : gettext("created"), $userent['
17
name']);
18
+
19
+               /* Update userindex variable from auth.inc after a modification has been applied to a user */
20
+               global $userindex;
21
+               $userindex = index_users();
22
+
23
                write_config($savemsg);
24
                syslog($logging_level, "{$logging_prefix}: {$savemsg}");
25
                if (is_dir("/etc/inc/privhooks")) {
    (1-1/1)