diff --git a/core/js/js.js b/core/js/js.js index f498ed751c..efdb36187c 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1574,7 +1574,7 @@ OC.PasswordConfirmation = { self.$form.addClass('hidden'); self.$background.addClass('hidden'); - if (!_.isUndefined(self.callback)) { + if (_.isFunction(self.callback)) { self.callback(); } },