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  c6c223113e44021ad2ac98338a653ff13f6aa5e3 (commit)
      from  9d5f50a8861dfdee56915a82a09aec0e2c3a0a94 (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 -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=c6c223113e44021ad2ac98338a653ff13f6aa5e3

commit c6c223113e44021ad2ac98338a653ff13f6aa5e3
Author: Franck Villaume <[email protected]>
Date:   Sat Aug 27 10:25:12 2016 +0200

    password is now 8 chars minimum

diff --git a/src/www/admin/passedit.php b/src/www/admin/passedit.php
index 1bd6483..dd8979e 100644
--- a/src/www/admin/passedit.php
+++ b/src/www/admin/passedit.php
@@ -50,11 +50,11 @@ if (getStringFromRequest('submit')) {
        $passwd = getStringFromRequest('passwd');
        $passwd2 = getStringFromRequest('passwd2');
 
-       if (strlen($passwd)<6) {
+       if (strlen($passwd)<8) {
                form_release_key(getStringFromRequest('form_key'));
                exit_error(
                        _('Error'),
-                       _('You must supply valid password (at least 6 
characters).')
+                       _('You must supply valid password (at least 8 
characters).')
                );
        }
 
@@ -76,26 +76,23 @@ if (getStringFromRequest('submit')) {
 
        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 html_e('h2', array(), sprintf(_('%s Password Change 
Confirmation'), forge_get_config('forge_name')));
        echo $HTML->feedback(sprintf(_('You have changed successfully the 
password of %1$s (%2$s).'), $u->getUnixName(), $u->getRealName()));
        printf('<p>'._('Go back to %s.').'</p>', 
util_make_link('/admin/userlist.php', _('the Full User List')));
 } else {
        // Show change form
        site_admin_header(array('title'=>_('Site Admin: Change User 
Password')));
+       echo $HTML->openForm(array('action' => 
'/admin/passedit.php?user_id='.$user_id, 'method' => 'post'));
        ?>
-
-       <form action="<?php echo 
util_make_uri('/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 echo _('New Password (at least 6 characters)') ?>:
-       <br /><input type="password" name="passwd" required="required" 
title="<?php echo _('At least 6 characters'); ?>" pattern=".{6,}"/></p>
+       <p><?php echo _('New Password (at least 8 characters)') ?>:
+       <br /><input type="password" name="passwd" required="required" 
title="<?php echo _('At least 8 characters'); ?>" pattern=".{8,}"/></p>
        <p><?php echo _('New Password (repeat)') ?>:
-       <br /><input type="password" name="passwd2" required="required" 
title="<?php echo _('At least 6 characters'); ?>" pattern=".{6,}" /></p>
+       <br /><input type="password" name="passwd2" required="required" 
title="<?php echo _('At least 8 characters'); ?>" pattern=".{8,}" /></p>
        <p><input type="submit" name="submit" value="<?php echo _('Update 
password') ?>" /></p>
-       </form>
        <?php
+       echo $HTML->closeForm();
 }
 
 site_admin_footer();

-----------------------------------------------------------------------

Summary of changes:
 src/www/admin/passedit.php | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to