From 657e4c8a9d3dc2c8cb796fbfcf4f8fcb9996f2ea Mon Sep 17 00:00:00 2001 From: rolandog Date: Fri, 1 Apr 2016 23:01:55 +0000 Subject: [PATCH] Prevented domain name and password leakage This prevents a user from logging in with any password into a tab that was left open and being able to view the last domain name and generated password. --- Site/mpw-js/js/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Site/mpw-js/js/main.js b/Site/mpw-js/js/main.js index 34456762..05fe2c94 100644 --- a/Site/mpw-js/js/main.js +++ b/Site/mpw-js/js/main.js @@ -42,6 +42,8 @@ function update(active, working, error) { $('#userName').focus(); } else { + $('#siteName').value = ""; + $('#sitePassword').textContent = ""; $('#identity').removeClass('active'); $('#site').addClass('active'); $('#siteName').focus();