From 230ded97740101e3faa222e879bd299f03288377 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 29 Apr 2010 08:29:29 +0000 Subject: [PATCH] Updated password fields git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17923 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../include/smarty/plugins/function.factory.php | 6 +++--- gosa-core/plugins/admin/users/password.tpl | 16 ++++++++++------ gosa-core/plugins/personal/password/password.tpl | 15 +++++++++------ 3 files changed, 22 insertions(+), 15 deletions(-) diff --git a/gosa-core/include/smarty/plugins/function.factory.php b/gosa-core/include/smarty/plugins/function.factory.php index 42640241f..7de9c138a 100644 --- a/gosa-core/include/smarty/plugins/function.factory.php +++ b/gosa-core/include/smarty/plugins/function.factory.php @@ -5,7 +5,7 @@ function smarty_function_factory($params, &$smarty) // Capture params foreach(array('type','id','name','title','value','maxlength', - 'onfocus','onclick') as $var){ + 'onfocus','onclick','onkeyup') as $var){ $$var = (isset($params[$var]))? $params[$var] : ""; $tmp = "{$var}Ready"; $$tmp = (isset($params[$var]))? "{$var}=\"{$params[$var]}\"" : ""; @@ -20,10 +20,10 @@ function smarty_function_factory($params, &$smarty) // Maxlength has a default of 40 characters $maxlengthReady = (empty($maxlength))?'maxlength="40"': $maxlengthReady; $str .= ""; diff --git a/gosa-core/plugins/admin/users/password.tpl b/gosa-core/plugins/admin/users/password.tpl index 2186bfc3a..0a36fbc1d 100644 --- a/gosa-core/plugins/admin/users/password.tpl +++ b/gosa-core/plugins/admin/users/password.tpl @@ -11,11 +11,17 @@ - + - + @@ -29,10 +35,8 @@
- - - - + +
diff --git a/gosa-core/plugins/personal/password/password.tpl b/gosa-core/plugins/personal/password/password.tpl index 61562fe69..f83beca18 100644 --- a/gosa-core/plugins/personal/password/password.tpl +++ b/gosa-core/plugins/personal/password/password.tpl @@ -11,18 +11,21 @@
+ {factory type='password' id='new_password' name='new_password' + onfocus="nextfield='repeated_password';" onkeyup="testPasswordCss(\$('new_password').value);"} +
+ {factory type='password' id='repeated_password' name='repeated_password' + onfocus="nextfield='password_finish';"} +
{t}Strength{/t}
- + - + - + -- 2.30.2
+ {factory type='password' name='current_password' id='current_password' onfocus="nextfield= 'new_password';"} +
+ {factory type='password' name='new_password' id='new_password' onkeyup="testPasswordCss(\$('new_password').value)"} +
+ {factory type='password' name='repeated_password' id='repeated_password' onfocus="nextfield= 'password_finish';"} +
{t}Password strength{/t}