[Fusionforge-commits] FusionForge branch master updated. 5dcf5dd4edd18d598de63f60c6a37913b09638f2

Franck VILLAUME nerville at fusionforge.org
Thu Dec 26 20:43:16 CET 2013

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  5dcf5dd4edd18d598de63f60c6a37913b09638f2 (commit)
      from  c3b192f267cd3c070df6f640ec4e1685999f71a3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5dcf5dd4edd18d598de63f60c6a37913b09638f2
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Thu Dec 26 20:42:25 2013 +0100

    Site admin: change user password: use html5 when possible, use proper feedback

diff --git a/src/www/admin/passedit.php b/src/www/admin/passedit.php
index a22afa5..65f6ce3 100644
--- a/src/www/admin/passedit.php
+++ b/src/www/admin/passedit.php
@@ -5,6 +5,7 @@
  * Copyright © 2010
  *	Thorsten “mirabilos” Glaser <t.glaser at tarent.de>
  * All rights reserved.
+ * Copyright 2013, Franck Villaume - TrivialDev
  * Based on other FusionForge code.
@@ -71,13 +72,13 @@ if (getStringFromRequest('submit')) {
-	site_admin_header(array('title'=>_('Site Admin: Successfully Changed User Password')));
+	site_admin_header(array('title'=>_('Site Admin: Change User Password')));
 	echo '<h2>';
 	printf(_('%s Password Change Confirmation'), forge_get_config('forge_name'));
 	echo '</h2>';
-	echo '<p>';
-	printf(_('You have changed the password of %1$s (%2$s).'), $u->getUnixName(), $u->getRealName());
+	echo '<p class="feedback">';
+	printf(_('You have changed successfully the password of %1$s (%2$s).'), $u->getUnixName(), $u->getRealName());
 	echo '</p>';
 	printf('<p>'._("Go back to %s.").'</p>', '<a href="userlist.php">'._("the Full User List").'</a>');
 } else {
@@ -87,11 +88,11 @@ if (getStringFromRequest('submit')) {
 	<form action="<?php echo util_make_url('/admin/passedit.php?user_id='.$user_id); ?>" method="post">
 	<input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>"/>
-	<p><?php printf(_('Changing password for user #%1$s "%2$s" (%3$s)…'), $user_id, $u->getUnixName(), $u->getRealName()); ?></p>
+	<p><?php printf(_('Changing password for user #%1$s "%2$s" (%3$s).'), $user_id, $u->getUnixName(), $u->getRealName()); ?></p>
 	<p><?php echo _('New Password (at least 6 chars)') ?>:
-	<br /><input type="password" name="passwd" /></p>
+	<br /><input type="password" name="passwd" required="required" title="<?php echo _('At least 6 chars'); ?>" pattern=".{6,}"/></p>
 	<p><?php echo _('New Password (repeat)') ?>:
-	<br /><input type="password" name="passwd2" /></p>
+	<br /><input type="password" name="passwd2" required="required" title="<?php echo _('At least 6 chars'); ?>" pattern=".{6,}" /></p>
 	<p><input type="submit" name="submit" value="<?php echo _('Update password') ?>" /></p>


Summary of changes:
 src/www/admin/passedit.php |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)


More information about the Fusionforge-commits mailing list