Skip to content
Code-Schnipsel Gruppen Projekte
Commit b2b6721a erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: ensure onSuccess attribute is a function in login.js

The commit ensures that the onSuccess attribute is a function, and it's successful execution before
proceeding. This is implemented in bin/frontend/controls/login/Login.js. With this fix, potential
errors from incorrectly set onSuccess attributes can be avoided.
Übergeordneter ff769b7b
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
Pipeline-Nr. 16758 mit Warnungen bestanden
...@@ -357,8 +357,10 @@ define('package/quiqqer/frontend-users/bin/frontend/controls/login/Login', [ ...@@ -357,8 +357,10 @@ define('package/quiqqer/frontend-users/bin/frontend/controls/login/Login', [
self.$hideSocialLoader(Form); self.$hideSocialLoader(Form);
self.$onSuccess(); self.$onSuccess();
if (typeof self.getAttribute('onSuccess') === 'function') { if (
self.getAttribute('onSuccess')(self); typeof self.getAttribute('onSuccess') === 'function' &&
self.getAttribute('onSuccess')(self)
) {
return; return;
} }
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren