fast-browser-with-jev
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head><meta charset="utf-8"><title>Fast Browser test login</title></head>
|
||||
<body>
|
||||
<h1>Local test-account login</h1>
|
||||
<p>This disposable fixture sends no requests and stores no credentials.</p>
|
||||
<form id="login">
|
||||
<label for="username">Username</label>
|
||||
<input id="username" name="username" autocomplete="off">
|
||||
<label for="password">Password</label>
|
||||
<input id="password" name="password" type="password" autocomplete="off">
|
||||
<button type="submit">Sign in</button>
|
||||
</form>
|
||||
<p id="status" role="status"></p>
|
||||
<script>
|
||||
document.getElementById('login').addEventListener('submit', (event) => {
|
||||
event.preventDefault();
|
||||
const accepted = document.getElementById('username').value === 'demo-user'
|
||||
&& document.getElementById('password').value === 'demo-password';
|
||||
document.getElementById('status').textContent = accepted ? 'Test login complete' : 'Test login failed';
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user