Skip to content

Commit

Permalink
Revert whitespace changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienClairembault committed Apr 26, 2024
1 parent 5de843d commit 409c42a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 31 deletions.
2 changes: 1 addition & 1 deletion src/Auth.php
Expand Up @@ -1724,7 +1724,7 @@ public static function dropdownLogin(bool $display = true, $rand = 1)
'display' => false,
'rand' => $rand,
'value' => $default,
'width' => '100%',
'width' => '100%'
]);

if ($display) {
Expand Down
34 changes: 4 additions & 30 deletions templates/pages/login.html.twig
Expand Up @@ -50,14 +50,7 @@
</div>
<div class="mb-3">
<label class="form-label" for="login_name">{{ __('Login') }}</label>
<input
type="text"
class="form-control"
id="login_name"
name="{{ namfield }}"
placeholder=""
tabindex="1"
/>
<input type="text" class="form-control" id="login_name" name="{{ namfield }}" placeholder="" tabindex="1"/>
</div>
<div class="mb-4">
<label class="form-label" for="login_password">
Expand Down Expand Up @@ -87,15 +80,7 @@
{% endif %}
{% endif %}
</label>
<input
type="password"
class="form-control"
id="login_password"
name="{{ pwdfield }}"
placeholder=""
autocomplete="off"
tabindex="2"
/>
<input type="password" class="form-control" id="login_password" name="{{ pwdfield }}" placeholder="" autocomplete="off" tabindex="2"/>
</div>

{% if constant('GLPI_DEMO_MODE') %}
Expand All @@ -115,25 +100,14 @@
{% if config('login_remember_time') %}
<div class="mb-2">
<label class="form-check" for="login_remember">
<input
type="checkbox"
class="form-check-input"
id="login_remember"
name="{{ rmbfield }}"
{{ config('login_remember_default') ? 'checked' : '' }}
/>
<input type="checkbox" class="form-check-input" id="login_remember" name="{{ rmbfield }}" {{ config('login_remember_default') ? 'checked' : '' }}/>
<span class="form-check-label">{{ __('Remember me') }}</span>
</label>
</div>
{% endif %}

<div class="form-footer">
<button
type="submit"
name="submit"
class="btn btn-primary w-100"
tabindex="3"
>
<button type="submit" name="submit" class="btn btn-primary w-100" tabindex="3">
{{ __('Sign in') }}
</button>
</div>
Expand Down

0 comments on commit 409c42a

Please sign in to comment.