I'm using CMSMS 2.2.7 and FEU 2.10.
Everything works fine except when the user submits a wrong password. In this case, the server response don't contain the error message, but only the login form html code.
My jQuery code is this one:
Code: Select all
<__script__ type="text/javascript">
var frm = $('#m795fcmoduleform_1');
frm.submit(function (e) {
e.preventDefault();
$.ajax({
type: frm.attr('method'),
url: frm.attr('action') + "?showtemplate=false",
data: frm.serialize()
})
.done(function(data){
console.log('Submission was successful.');
console.log(data);
});
});
</__script>
Has anyone encountered this problem?
Thanks.