Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
only call when we have a domain
Browse files Browse the repository at this point in the history
  • Loading branch information
awolfe76 committed Aug 18, 2017
1 parent 214405e commit fc1b2fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions keycloak/themes/hmda/login/register.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ $(document).ready(function() {
} else {
// e.keyCode will be 'undefined' on tab key
// don't make the API call on tab keyup
if((emailExp.test(email.val()) && e.keyCode) || e.type === 'blur') {
debounceRequest(emailToDomain(email.val().trim()))
var domain = emailToDomain(email.val().trim())
if((emailExp.test(email.val()) && e.keyCode) || e.type === 'blur' && domain !== '') {
debounceRequest(domain)
}
}
});
Expand Down

0 comments on commit fc1b2fa

Please sign in to comment.