start_sf5_project/app/assets/js/login.js

12 lines
378 B
JavaScript
Raw Normal View History

2021-04-16 07:37:45 +00:00
$(function() {
var usernameEl = $('#username');
var passwordEl = $('#password');
// in a real application, the user/password should never be hardcoded
// but for the demo application it's very convenient to do so
if (!usernameEl.val() || 'jane_admin' === usernameEl.val()) {
usernameEl.val('jane_admin');
passwordEl.val('kitten');
}
});