Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add form-label class to login form #1350

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/FileManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ private function realPath(string $absolutePath): string
}

$finalPath = implode('/', $finalParts);

// Normalize: // => /
// Normalize: /./ => /
return str_replace(['//', '/./'], '/', $finalPath);
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/skeleton/authenticator/login_form.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<?php endif; ?>

<h1 class="h3 mb-3 font-weight-normal">Please sign in</h1>
<label for="input<?= ucfirst($username_field); ?>"><?= $username_label; ?></label>
<label for="input<?= ucfirst($username_field); ?>" class="form-label"><?= $username_label; ?></label>
<input type="<?= $username_is_email ? 'email' : 'text'; ?>" value="{{ last_username }}" name="<?= $username_field; ?>" id="input<?= ucfirst($username_field); ?>" class="form-control" autocomplete="<?= $username_is_email ? 'email' : 'username'; ?>" required autofocus>
<label for="inputPassword">Password</label>
<label for="inputPassword" class="form-label">Password</label>
<input type="password" name="password" id="inputPassword" class="form-control" autocomplete="current-password" required>

<input type="hidden" name="_csrf_token"
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/skeleton/security/formLogin/login_form.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

<?php endif; ?>
<h1 class="h3 mb-3 font-weight-normal">Please sign in</h1>
<label for="username"><?= $username_label; ?></label>
<label for="username" class="form-label"><?= $username_label; ?></label>
<input type="<?= $username_is_email ? 'email' : 'text'; ?>" value="{{ last_username }}" name="_username" id="username" class="form-control" autocomplete="<?= $username_is_email ? 'email' : 'username'; ?>" required autofocus>
<label for="password">Password</label>
<label for="password" class="form-label">Password</label>
<input type="password" name="_password" id="password" class="form-control" autocomplete="current-password" required>

<input type="hidden" name="_csrf_token"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
{% endif %}

<h1 class="h3 mb-3 font-weight-normal">Please sign in</h1>
<label for="username">Email</label>
<label for="username" class="form-label">Email</label>
<input type="email" value="{{ last_username }}" name="_username" id="username" class="form-control" autocomplete="email" required autofocus>
<label for="password">Password</label>
<label for="password" class="form-label">Password</label>
<input type="password" name="_password" id="password" class="form-control" autocomplete="current-password" required>

<input type="hidden" name="_csrf_token"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
{% endif %}

<h1 class="h3 mb-3 font-weight-normal">Please sign in</h1>
<label for="username">Email</label>
<label for="username" class="form-label">Email</label>
<input type="email" value="{{ last_username }}" name="_username" id="username" class="form-control" autocomplete="email" required autofocus>
<label for="password">Password</label>
<label for="password" class="form-label">Password</label>
<input type="password" name="_password" id="password" class="form-control" autocomplete="current-password" required>

<input type="hidden" name="_csrf_token"
Expand Down
Loading