projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
116ec90
)
Some fixes for Usermin IMAP password change
author
Jamie Cameron
<jcameron@webmin.com>
Wed, 25 Feb 2009 06:32:58 +0000
(06:32 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Wed, 25 Feb 2009 06:32:58 +0000
(06:32 +0000)
password_change.cgi
patch
|
blob
|
history
diff --git
a/password_change.cgi
b/password_change.cgi
index
1dcf808
..
c6f68a8
100755
(executable)
--- a/
password_change.cgi
+++ b/
password_change.cgi
@@
-128,6
+128,15
@@
else {
&unlock_file($miniserv{'passwd_file'});
}
+# Change password in Usermin too
+if (&get_product_name() eq 'usermin' &&
+ &foreign_check("changepass")) {
+ # XXX remote user??
+ &foreign_require("changepass", "changepass-lib.pl");
+ &changepass::change_mailbox_passwords(
+ $in{'user'}, $in{'old'}, $in{'new1'});
+ }
+
# Show ok page
&header(undef, undef, undef, undef, 1, 1);