wilde: server/kolab-webadmin/kolab-webadmin/www/admin/user user.php.in, 1.13, 1.14
cvs at kolab.org
cvs at kolab.org
Wed Jan 10 17:50:45 CET 2007
Author: wilde
Update of /kolabrepository/server/kolab-webadmin/kolab-webadmin/www/admin/user
In directory doto:/tmp/cvs-serv7039/kolab-webadmin/kolab-webadmin/www/admin/user
Modified Files:
user.php.in
Log Message:
Code cleanup: moved the redundant function `checkpw' to include/passwd.php.
Index: user.php.in
===================================================================
RCS file: /kolabrepository/server/kolab-webadmin/kolab-webadmin/www/admin/user/user.php.in,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- user.php.in 10 Jan 2007 15:59:58 -0000 1.13
+++ user.php.in 10 Jan 2007 16:50:43 -0000 1.14
@@ -144,25 +144,6 @@
return '';
}
-// Check that password match
-function checkpw( $form, $key, $value ) {
- global $action;
- if( $action == 'firstsave' ) {
- if( $key == 'password_0' ) {
- if( $value == '' ) return _('Password is empty');
- } else if( $key == 'password_1' ) {
- if( $value != $_POST['password_0'] ) {
- return _('Passwords dont match');
- }
- }
- } else {
- if( $value != $_POST['password_0'] ) {
- return _('Passwords dont match');
- }
- }
- return '';
-}
-
// Due to a cyrus imapd bug we can't currently
// support quotas over 4095 MB, see issue1262
function checkquota( $form, $key, $value )
More information about the commits
mailing list