mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user