Skip to content

Commit 1a5030e

Browse files
committed
Added a help note about why it's the password/username hardcoded
1 parent 8ed67d9 commit 1a5030e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/Resources/views/security/login.html.twig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@
9494
$(document).ready(function() {
9595
var usernameEl = $('#username');
9696
var passwordEl = $('#password');
97+
// in a real application, hardcoding the user/password would be idiotic
98+
// but for the demo application it's very convenient to do so
9799
if (!usernameEl.val() && !passwordEl.val()) {
98100
usernameEl.val('anna_admin');
99101
passwordEl.val('kitten');

0 commit comments

Comments
 (0)