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  c21023671e7cbc0390caf2112865ee58e966a720 (commit)
      from  dfee9ad43bc73896f8b68acfa1e1ac895cc49b44 (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=c21023671e7cbc0390caf2112865ee58e966a720

commit c21023671e7cbc0390caf2112865ee58e966a720
Author: Franck Villaume <franck.villa...@trivialdev.com>
Date:   Mon Jul 8 12:08:16 2019 +0000

    add label on form/input for accessibility

diff --git a/src/plugins/authbuiltin/common/AuthBuiltinPlugin.class.php 
b/src/plugins/authbuiltin/common/AuthBuiltinPlugin.class.php
index 149b720..ad78263 100644
--- a/src/plugins/authbuiltin/common/AuthBuiltinPlugin.class.php
+++ b/src/plugins/authbuiltin/common/AuthBuiltinPlugin.class.php
@@ -3,7 +3,7 @@
  * FusionForge authentication management
  *
  * Copyright 2011, Roland Mas
- * Copyright 2014-2015, Franck Villaume - TrivialDev
+ * Copyright 2014-2015,2019, 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
@@ -71,14 +71,14 @@ class AuthBuiltinPlugin extends ForgeAuthPlugin {
                $result .= html_e('input', array('type' => 'hidden', 'name' => 
'return_to', 'value' => $return_to));
                $result .= html_ao('p');
                if (forge_get_config('require_unique_email')) {
-                       $result .= _('Login name or email address')._(':');
+                       $result .= html_e('label', array('for' => 
'form_loginname'), _('Login name or email address')._(':'));
                } else {
-                       $result .= _('Login Name')._(':');
+                       $result .= html_e('label', array('for' => 
'form_loginname'), _('Login Name')._(':'));
                }
-               $result .= html_e('br').html_e('input', array('type' => 'text', 
'name' => 'form_loginname', 'value' => 
htmlspecialchars(stripslashes($loginname)), 'required' => 'required'));
+               $result .= html_e('br').html_e('input', array('type' => 'text', 
'id' => 'form_loginname', 'name' => 'form_loginname', 'value' => 
htmlspecialchars(stripslashes($loginname)), 'required' => 'required'));
                $result .= html_ac(html_ap() -1);
-               $result .= html_ao('p')._('Password')._(':');
-               $result .= html_e('br').html_e('input', array('type' => 
'password', 'name' => 'form_pw', 'required' => 'required'));
+               $result .= html_ao('p').html_e('label', array('for' => 
'form_pw'), _('Password')._(':'));
+               $result .= html_e('br').html_e('input', array('type' => 
'password', 'id' => 'form_pw', 'name' => 'form_pw', 'required' => 'required'));
                $result .= html_ac(html_ap() -1);
                if (isset($params['attempts'])) {
                        $result .= html_e('input', array('type' => 'hidden', 
'name' => 'attempts', 'value' => $params['attempts']));

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

Summary of changes:
 src/plugins/authbuiltin/common/AuthBuiltinPlugin.class.php | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
Fusionforge-commits@lists.fusionforge.org
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to