Commit 9bb6306f authored by Romain Loth's avatar Romain Loth

email check dispatch event in case browser autofill

parent 30a14915
......@@ -29,6 +29,11 @@ var menuUForm = cmxClt.uauth.AuthForm(
)
var menuSubmitButton = document.getElementById('menu_form_submit')
// trigger auth changes (useful if browser completed from cache)
menuUForm.elEmail.dispatchEvent(new CustomEvent('change'))
menuUForm.elPass.dispatchEvent(new CustomEvent('change'))
menuUForm.elCaptcha.dispatchEvent(new CustomEvent('change'))
// done when anything in the form changes
function topLoginValidate(self) {
// console.log('topLoginValidate current EMAIL status', self.emailStatus)
......
......@@ -178,6 +178,12 @@ function addUidThenSubmit(doorsResp) {
// trigger auth changes (useful if browser completed from cache)
regfo.elEmail.dispatchEvent(new CustomEvent('change'))
regfo.elPass.dispatchEvent(new CustomEvent('change'))
regfo.elCaptcha.dispatchEvent(new CustomEvent('change'))
console.log("reg controllers load OK")
// £DEBUG autofill ----------->8------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment