diff --git a/bin/frontend/controls/login/Login.js b/bin/frontend/controls/login/Login.js index 0ff17c77f60abb0cec7b3c972f80d4aca4bec03c..5a0e0fa7ce3f5559ceff57ff5d03f4b5c2c42096 100644 --- a/bin/frontend/controls/login/Login.js +++ b/bin/frontend/controls/login/Login.js @@ -357,8 +357,10 @@ define('package/quiqqer/frontend-users/bin/frontend/controls/login/Login', [ self.$hideSocialLoader(Form); self.$onSuccess(); - if (typeof self.getAttribute('onSuccess') === 'function') { - self.getAttribute('onSuccess')(self); + if ( + typeof self.getAttribute('onSuccess') === 'function' && + self.getAttribute('onSuccess')(self) + ) { return; }