From c439ab00dbe207e90d887e5294fe8d2043520dec Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 8 Jan 2011 19:58:32 +0000 Subject: [PATCH] password fields for self service in two rows --- lam/lib/modules/posixAccount.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index 0fc10d7f..ef411517 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -4,7 +4,7 @@ This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) Copyright (C) 2003 - 2006 Tilo Lutz - Copyright (C) 2005 - 2010 Roland Gruber + Copyright (C) 2005 - 2011 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -1680,12 +1680,15 @@ class posixAccount extends baseModule implements passwordService { function getSelfServiceOptions($fields, $attributes) { $return = array(); if (in_array('password', $fields)) { + $pwdTable = new htmlTable(); $pwd1 = new htmlTableExtendedInputField(_('New password'), 'posixAccount_password'); $pwd1->setIsPassword(true); + $pwdTable->addElement($pwd1, true); $pwd2 = new htmlTableExtendedInputField(_('Reenter password'), 'posixAccount_password2'); $pwd2->setIsPassword(true); + $pwdTable->addElement($pwd2); $return['password'] = new htmlTableRow(array( - $pwd1, $pwd2 + $pwdTable )); } return $return;