Merge pull request #1905 from philipp-r/autocapitalize

autocapitalize off for the username input
This commit is contained in:
nodiscc 2022-11-20 15:12:55 +00:00 committed by GitHub
commit 5abf19faf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View file

@ -30,7 +30,7 @@
</div>
<div class="pure-u-lg-{$ratioInput} pure-u-1">
<div class="form-input">
<input type="text" name="setlogin" id="username">
<input type="text" name="setlogin" id="username" autocapitalize="off">
</div>
</div>
</div>

View file

@ -12,7 +12,7 @@
<h2 class="window-title">{'Login'|t}</h2>
<div>
<input type="text" name="login" aria-label="{'Username'|t}" placeholder="{'Username'|t}"
{if="!empty($username)"}value="{$username}"{/if} class="autofocus">
{if="!empty($username)"}value="{$username}"{/if} class="autofocus" autocapitalize="off">
</div>
<div>
<input type="password" name="password" aria-label="{'Password'|t}" placeholder="{'Password'|t}" class="autofocus">

View file

@ -138,7 +138,7 @@
{if="!$is_logged_in"}
<form method="post" name="loginform">
<div class="subheader-form header-login-form" id="header-login-form">
<input type="text" name="login" aria-label="{'Username'|t}" placeholder="{'Username'|t}" >
<input type="text" name="login" aria-label="{'Username'|t}" placeholder="{'Username'|t}" autocapitalize="off" >
<input type="password" name="password" aria-label="{'Password'|t}" placeholder="{'Password'|t}" >
<div class="remember-me">
<input type="checkbox" name="longlastingsession" id="longlastingsession" checked>

View file

@ -7,7 +7,7 @@
It looks like it's the first time you run Shaarli. Please configure it:<br>
<form method="POST" action="{$base_path}/install" name="installform" id="installform">
<table>
<tr><td><b>Login:</b></td><td><input type="text" name="setlogin" size="30"></td></tr>
<tr><td><b>Login:</b></td><td><input type="text" name="setlogin" size="30" autocapitalize="off"></td></tr>
<tr><td><b>Password:</b></td><td><input type="password" name="setpassword" size="30"></td></tr>
<tr>
<td><b>Timezone:</b></td>

View file

@ -13,7 +13,7 @@
<div id="headerform">
<form method="post" name="loginform" action="{$base_path}/login">
<label for="login">Login: <input type="text" id="login" name="login" tabindex="1"
{if="!empty($username)"}value="{$username}"{/if}>
{if="!empty($username)"}value="{$username}"{/if} autocapitalize="off">
</label>
<label for="password">Password: <input type="password" id="password" name="password" tabindex="2">
</label>