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  0155222ffcfeb3f60873cb30dc282daf533e2edc (commit)
      from  638b01fc492b4a52e19593e65d1daa0f96a2a7b6 (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=0155222ffcfeb3f60873cb30dc282daf533e2edc

commit 0155222ffcfeb3f60873cb30dc282daf533e2edc
Author: Franck Villaume <[email protected]>
Date:   Fri Sep 2 08:47:11 2016 +0200

    use HTML helpers

diff --git a/src/www/account/lostlogin.php b/src/www/account/lostlogin.php
index 43268d8..ed92fdf 100644
--- a/src/www/account/lostlogin.php
+++ b/src/www/account/lostlogin.php
@@ -6,6 +6,7 @@
  *
  * Copyright 1999-2001 (c) VA Linux Systems
  * Copyright 2010 (c) Franck Villaume
+ * Copyright 2016, Franck Villaume - TrivialDev
  *
  * This file is part of FusionForge. FusionForge is free software;
  * you can redistribute it and/or modify it under the terms of the
@@ -86,13 +87,10 @@ if (getStringFromRequest("submit")) {
 
 $title = _("Lost Password Login") ;
 $HTML->header(array('title'=>$title));
-echo '<p>' ;
-printf (_('Welcome, %s. You may now change your password.'),$u->getUnixName());
-echo '</p>';
+echo html_e('p', array(), sprintf(_('Welcome, %s. You may now change your 
password.'),$u->getUnixName()));
+echo $HTML->openForm(array('action' => '/account/lostlogin.php', 'method' => 
'post'));
 ?>
-
-<form action="<?php echo util_make_url('/account/lostlogin.php'); ?>" 
method="post">
-<p><?php echo _('New Password (at least 8 characters)'); ?>:
+<p><?php echo _('New Password (at least 8 characters)')._(':'); ?>
 <br />
 <label for="passwd">
        <input id="passwd" type="password" name="passwd"/>
@@ -105,10 +103,9 @@ echo '</p>';
 </label>
 <input type="hidden" name="confirm_hash" value="<?php print $confirm_hash; ?>" 
/></p>
 <p><input type="submit" name="submit" value="<?php echo _('Update'); ?>" /></p>
-</form>
 
 <?php
-
+echo $HTML->closeForm();
 $HTML->footer();
 
 // Local Variables:
diff --git a/src/www/account/lostpw.php b/src/www/account/lostpw.php
index 591769a..2ef888e 100644
--- a/src/www/account/lostpw.php
+++ b/src/www/account/lostpw.php
@@ -9,6 +9,7 @@
  * Copyright 2002-2004 (c) GForge Team
  * Copyright 2010 (c) Franck Villaume
  * Copyright (C) 2012 Alain Peyrat - Alcatel-Lucent
+ * Copyright 2016, Franck Villaume - TrivialDev
  * http://fusionforge.org/
  *
  * This file is part of FusionForge. FusionForge is free software;
@@ -83,9 +84,8 @@ $HTML->header(array('title'=>"Lost Account Password"));
 
 echo '<p>' . _('Hey... losing your password is serious business. It 
compromises the security of your account, your projects, and this site.') . 
'</p>';
 echo '<p>' . _('Clicking “Send Lost PW Hash” below will email a URL to the 
email address we have on file for you. In this URL is a 128-bit confirmation 
hash for your account. Visiting the URL will allow you to change your password 
online and login.') . '</p>';
+echo $HTML->openForm(array('action' => '/account/lostpw.php', 'method' => 
'post'));
 ?>
-
-<form action="<?php echo util_make_url('/account/lostpw.php'); ?>" 
method="post">
 <input type="hidden" name="form_key" value="<?php echo form_generate_key(); 
?>"/> <p>
 <?php echo _('Login Name')._(':'); ?>
 <br />
@@ -95,7 +95,7 @@ echo '<p>' . _('Clicking “Send Lost PW Hash” below will email 
a URL to the e
     <br />
 <input type="submit" name="submit" value="<?php echo _('Send Lost PW Hash'); 
?>" />
 </p>
-</form>
+<?php echo $HTML->closeForm(); ?>
 
        <p><?php echo util_make_link ("/", _('Return')); ?></p>
 

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

Summary of changes:
 src/www/account/lostlogin.php | 13 +++++--------
 src/www/account/lostpw.php    |  6 +++---
 2 files 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