Skip to content

Commit

Permalink
Fix OTP form rendering classes
Browse files Browse the repository at this point in the history
The form was not using the correct bootstrap form classes so was ugly
  • Loading branch information
thijskh committed Jan 23, 2024
1 parent fb18714 commit a2f3267
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions assets/scss/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ div.middle {
#otpform {
width: 50%;
margin: 0 auto;
margin-top: 1em;
display: block;
float: none;

Expand Down
6 changes: 3 additions & 3 deletions templates/default/authentication.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@

<div id="otpform">
<form method="POST" class="form-inline">
<div class="input-group">
<input type="text" name="otp" tabindex="3"
<div class="form-group">
<input type="text" name="otp" tabindex="3" class="form-control"
placeholder="{{ 'login.qr.manual.otp' | trans }}"
autocomplete="off" />
autocomplete="off">
&nbsp;
<button type="submit" class="btn btn-primary">{{ 'login.qr.manual.button' | trans }}</button>
</div>
Expand Down

0 comments on commit a2f3267

Please sign in to comment.