hidden faster way of filling up the login form

This commit is contained in:
Dusan Jakub
2023-10-11 17:51:18 +02:00
parent 48ab035574
commit e4ffe82915
2 changed files with 21 additions and 6 deletions

View File

@@ -31,12 +31,22 @@
</button> </button>
</div> </div>
</div> </div>
<h6>Predefined accounts:</h6>
<ul class="collection">
<li class="collection-item">
<button class="link-button secret-link"
onclick="this.form.username.value='bob'; this.form.password.value='Password1'; return false;">
bob / Password1
</button>
</li>
<li class="collection-item">
<button class="link-button secret-link"
onclick="this.form.username.value='user'; this.form.password.value='user'; return false;">
user / user
</button>
</li>
</ul>
</form> </form>
<h6>Predefined accounts:</h6>
<ul class="collection">
<li class="collection-item">bob / Password1</li>
<li class="collection-item">user / user</li>
</ul>
<form action="/auth/passwordless" method="post" class="right-align"> <form action="/auth/passwordless" method="post" class="right-align">
<input type="hidden" name="sessionId" value="{sessionId}"> <input type="hidden" name="sessionId" value="{sessionId}">
<small>Pst, you can try <small>Pst, you can try

View File

@@ -40,7 +40,7 @@
background-color: #0056b3 background-color: #0056b3
} }
.link-button { .link-button, .link-button:focus {
background: none; background: none;
border: none; border: none;
color: #1a0dab; color: #1a0dab;
@@ -49,6 +49,11 @@
padding: 0; padding: 0;
} }
.secret-link, .secret-link:focus {
text-decoration: none;
color: inherit;
}
.collection { .collection {
border: none; border: none;
} }