Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 19c64dd

Browse files
committed
Empty the fields values only after response is received.
1 parent 5b53d81 commit 19c64dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/plugins/authfront.session_login/manifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@
114114
connexion.addParameter(i.name, i.getValue());
115115
});
116116
connexion.onComplete = function(transport){
117+
oForm.userid.value = '';
118+
oForm.password.value = '';
117119
var success = ajaxplorer.actionBar.parseXmlMessage(transport.responseXML);
118120
if(transport.responseXML && XPathGetSingleNodeText(transport.responseXML.documentElement, "logging_result/@value") == "-4"){
119121
ajaxplorer.loadSeedOrCaptcha(oForm.down('#login_seed'), oForm.down('img#captcha_image'), oForm.down('div.dialogLegend'), 'before');
@@ -127,8 +129,6 @@
127129
};
128130
connexion.setMethod('put');
129131
connexion.sendAsync();
130-
oForm.userid.value = '';
131-
oForm.password.value = '';
132132
return false;
133133
}, function(){}, true);
134134
}

0 commit comments

Comments
 (0)