Changeset 35828


Ignore:
Timestamp:
2021-12-17T15:33:27+13:00 (2 years ago)
Author:
cstephen
Message:

Disable autocomplete in AddUser page for user detail inputs

Location:
main/trunk/greenstone3/web/interfaces
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/authen.xsl

    r35427 r35828  
    341341                                <td><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.username')"/><xsl:text>: </xsl:text></td>
    342342                                <td>
    343                                     <input type="text" name="s1.username"/>
     343                                    <input type="text" name="s1.username" autocomplete="off" />
    344344                                </td>
    345345                            </tr>
     
    347347                                <td><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.password')"/><xsl:text>: </xsl:text></td>
    348348                                <td>
    349                                     <input id="passwordOne" type="password" name="s1.password"/>
     349                                    <input id="passwordOne" type="password" name="s1.password" autocomplete="off" />
    350350                                </td>
    351351                            </tr>
     
    353353                                <td><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.retype_password')"/><xsl:text>: </xsl:text></td>
    354354                                <td>
    355                                     <input id="passwordTwo" type="password"/>
     355                                    <input id="passwordTwo" type="password" autocomplete="off" />
    356356                                </td>
    357357                            </tr>
     
    359359                                <td><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.email')"/><xsl:text>: </xsl:text></td>
    360360                                <td>
    361                                     <input type="text" name="s1.email"/>
     361                                    <input type="text" name="s1.email" autocomplete="off" />
    362362                                </td>
    363363                            </tr>
    364364                            <xsl:if test="/page/pageResponse/authenticationNode/service/@operation = 'AddUser'">
    365                                                           <!-- if you want to add a default group to the groups field with AdddUser, then use this instead, replacing xxx with the default group/s
    366                               <xsl:call-template name="addGroupInputField"><xsl:with-param name="default_value">xxx</xsl:with-param></xsl:call-template>-->
    367                                                           <xsl:call-template name="addGroupInputField"/>
     365                                <!-- if you want to add a default group to the groups field with AdddUser, then use this instead, replacing xxx with the default group/s
     366                                <xsl:call-template name="addGroupInputField"><xsl:with-param name="default_value">xxx</xsl:with-param></xsl:call-template>-->
     367                                <xsl:call-template name="addGroupInputField"/>
    368368                                <tr>
    369369                                    <td><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.comment')"/><xsl:text>: </xsl:text></td>
  • main/trunk/greenstone3/web/interfaces/default_wip/transform/pages/authen.xsl

    r35822 r35828  
    341341                                <td><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.username')"/><xsl:text>: </xsl:text></td>
    342342                                <td>
    343                                     <input type="text" name="s1.username"/>
     343                                    <input type="text" name="s1.username" autocomplete="off" />
    344344                                </td>
    345345                            </tr>
     
    347347                                <td><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.password')"/><xsl:text>: </xsl:text></td>
    348348                                <td>
    349                                     <input id="passwordOne" type="password" name="s1.password"/>
     349                                    <input id="passwordOne" type="password" name="s1.password" autocomplete="off" />
    350350                                </td>
    351351                            </tr>
     
    353353                                <td><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.retype_password')"/><xsl:text>: </xsl:text></td>
    354354                                <td>
    355                                     <input id="passwordTwo" type="password"/>
     355                                    <input id="passwordTwo" type="password" autocomplete="off" />
    356356                                </td>
    357357                            </tr>
     
    359359                                <td><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.email')"/><xsl:text>: </xsl:text></td>
    360360                                <td>
    361                                     <input type="text" name="s1.email"/>
     361                                    <input type="text" name="s1.email" autocomplete="off" />
    362362                                </td>
    363363                            </tr>
    364364                            <xsl:if test="/page/pageResponse/authenticationNode/service/@operation = 'AddUser'">
    365                                                           <!-- if you want to add a default group to the groups field with AdddUser, then use this instead, replacing xxx with the default group/s
    366                               <xsl:call-template name="addGroupInputField"><xsl:with-param name="default_value">xxx</xsl:with-param></xsl:call-template>-->
    367                                                           <xsl:call-template name="addGroupInputField"/>
     365                                <!-- if you want to add a default group to the groups field with AdddUser, then use this instead, replacing xxx with the default group/s
     366                                <xsl:call-template name="addGroupInputField"><xsl:with-param name="default_value">xxx</xsl:with-param></xsl:call-template>-->
     367                                <xsl:call-template name="addGroupInputField"/>
    368368                                <tr>
    369369                                    <td><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.comment')"/><xsl:text>: </xsl:text></td>
Note: See TracChangeset for help on using the changeset viewer.