Skip to content

Commit c0ccc57

Browse files
committed
bug #1046 Fix demo password autofill on Firefox (bocharsky-bw)
This PR was merged into the master branch. Discussion ---------- Fix demo password autofill on Firefox This PR fixes demo password auto-filling on Firefox, steps to reproduce: 1. Open the login page in FF: https://localhost:8000/en/login 2. Reload the page and see empty password - looks like FF clears it due to security reasons but keeps the username Commits ------- c57a9a0 Fix demo password autofill on Firefox
2 parents 28e2ee6 + c57a9a0 commit c0ccc57

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

assets/js/login.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ $(function() {
44

55
// in a real application, hardcoding the user/password would be idiotic
66
// but for the demo application it's very convenient to do so
7-
if (!usernameEl.val() && !passwordEl.val()) {
7+
if (!usernameEl.val() || 'jane_admin' === usernameEl.val()) {
88
usernameEl.val('jane_admin');
99
passwordEl.val('kitten');
1010
}

public/build/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/entrypoints.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
"/build/runtime.js": "sha384-/Zh0hTCgqMfXwZfeMIiueZzsKiHkvtqEOzKpZAuznIbgqg1DQpUQAwwNlO/9ToVH",
4343
"/build/0.js": "sha384-Dt6rncfcL40e91sPDLy/fZ8XgfH6ZZmLY1+ajXaPmGFGTb5XNtWS5jmf84NoZT/f",
4444
"/build/1.js": "sha384-bmKW9QGT6CjdvJr6hoYLCByhKzyjU+g+gUJ5SGOSxqUm4jzLuBhDpl0hImY/1R3M",
45-
"/build/app.js": "sha384-/3gf9IHx1zzgGuRgdnnW/2AJBU896jAJn1dDLJLb3vBkLQkE8WvI3ycZt0l0GECV",
45+
"/build/app.js": "sha384-uCtNC3fXHx82+vdtTkHRXofGzNn6MJtN1ChaO2RaxA2IaRj/Ybj3QNldmJ6X0jI1",
4646
"/build/app.css": "sha384-NGTdnyfcvVpvCvvEryRps/xU6Mb67YeTf1pvFrUkd80uXKIuxzYmcXzvzttKu4d0",
47-
"/build/login.js": "sha384-tCP53hf/3uu7W5h5syxKODJjjos7AyGM/lENitUwFKSXMxQsWP+50V0mN6bcImAo",
47+
"/build/login.js": "sha384-w5qwGnj2mp4pazKe9KGCQU+FR1n/717WouCp594UxY7HHGLafcGrZ9mrFR68V6oe",
4848
"/build/2.js": "sha384-zrtPryvCde+sRepOgkuLELopii2NoIgS3rrkpCfY8e7nT359Sc0tXRG2QqsKLfEO",
4949
"/build/admin.js": "sha384-My30UK7GowsN0RikK0XGQk7gvdtxxZsz2f52md+YoV4YZu4yjMArjwO7ZwE7K4av",
5050
"/build/admin.css": "sha384-NMnc2b6jJOZO4QiUk4TgitF+ipl41B2+0TFmAwGqpQ6cinY6Q6mb1watPtAAWkAZ",

public/build/login.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)