mirror of
https://github.com/ysoftdevs/oauth-playground-server.git
synced 2026-03-24 01:52:24 +01:00
add another user / user
This commit is contained in:
@@ -14,6 +14,7 @@ public class UsersRepo {
|
||||
|
||||
public UsersRepo() {
|
||||
register(new User("bob", "Password1", List.of()));
|
||||
register(new User("user", "user", List.of()));
|
||||
}
|
||||
|
||||
public Optional<User> getUser(String username) {
|
||||
|
||||
@@ -74,6 +74,11 @@
|
||||
<div class="error-popup" id="error-popup">Invalid credentials</div>
|
||||
{/if}
|
||||
<form action="/auth" method="post">
|
||||
Predefined accounts:
|
||||
<ul>
|
||||
<li>bob / Password1</li>
|
||||
<li>user / user</li>
|
||||
</ul>
|
||||
<input type="hidden" name="sessionId" value="{sessionId}">
|
||||
<div class="form-group">
|
||||
<label for="username">Username:</label>
|
||||
@@ -81,7 +86,6 @@
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password">Password:</label>
|
||||
(try "Password1")
|
||||
<input type="password" id="password" name="password" required>
|
||||
</div>
|
||||
<button type="submit" class="login-button">Login</button>
|
||||
|
||||
Reference in New Issue
Block a user