portico: Fix overlap of server and frontend errors.

Clears the errors received from the server whenever there is a chance of
overlap among them.

Fixes #10831.
This commit is contained in:
Vaibhav
2019-01-09 12:50:57 +05:30
committed by Tim Abbott
parent fbaa497dbb
commit 34ef37b1fe

View File

@@ -116,6 +116,12 @@ $(function () {
// by the server.
$("#login_form .alert.alert-error").remove();
},
showErrors: function (error_map) {
if (error_map.password) {
$("#login_form .alert.alert-error").remove();
}
this.defaultShowErrors();
},
});
function check_subdomain_avilable(subdomain) {