]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - html/cgi-bin/proxy.cgi
proxy.cgi: Switch to MD5 hashed passwords for local user auth.
[people/pmueller/ipfire-2.x.git] / html / cgi-bin / proxy.cgi
index b639640817a1c1ae2013123dd83d5a89409684ef..06aca579b9e63837ce801df74589becae8f9c813 100644 (file)
@@ -3945,7 +3945,13 @@ sub adduser
        } else {
                &deluser($str_user);
 
        } else {
                &deluser($str_user);
 
-               my $htpasswd = new Apache::Htpasswd("$userdb");
+               my %htpasswd_options = (
+                       passwdFile => "$userdb",
+                       UseMD5 => 1,
+               );
+
+               my $htpasswd = new Apache::Htpasswd(\%htpasswd_options);
+
                $htpasswd->htpasswd($str_user, $str_pass);
        }
 
                $htpasswd->htpasswd($str_user, $str_pass);
        }