diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-11-12 11:54:56 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-11-12 15:39:02 +0100 |
commit | 89e5ec41830cc27e4844a779051a9f0546a4b41b (patch) | |
tree | 5f2b96c0319efd44072537a5b8d898e9da14e9e8 /core | |
parent | 13eae2950912a08606b9519b1133f4621c0c60e8 (diff) | |
download | nextcloud-server-89e5ec41830cc27e4844a779051a9f0546a4b41b.tar.gz nextcloud-server-89e5ec41830cc27e4844a779051a9f0546a4b41b.zip |
Use nextcloud-password-confirmation
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/js/js.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js index aa8710646e4..71c26dac01a 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1761,7 +1761,7 @@ OC.PasswordConfirmation = { /** * @param {function} callback */ - requirePasswordConfirmation: function(callback, options) { + requirePasswordConfirmation: function(callback, options, rejectCallback) { options = typeof options !== 'undefined' ? options : {}; var defaults = { title: t('core','Authentication required'), @@ -1785,6 +1785,8 @@ OC.PasswordConfirmation = { function (result, password) { if (result && password !== '') { self._confirmPassword(password, config); + } else if (_.isFunction(rejectCallback)) { + rejectCallback() } }, true, |