summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-11-12 11:54:56 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-11-12 11:59:38 +0100
commit1cb5f316ed2113b1a546bb9a3daea1d5fe207785 (patch)
tree18979356ef7ec14e1d844b10147c043e35b73f62 /core
parentd6de8ebeb272d677a4bf1930c6eb42c1bf57b844 (diff)
downloadnextcloud-server-1cb5f316ed2113b1a546bb9a3daea1d5fe207785.tar.gz
nextcloud-server-1cb5f316ed2113b1a546bb9a3daea1d5fe207785.zip
Use nextcloud-password-confirmation
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core')
-rw-r--r--core/js/js.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 026cc6bb0d6..361d2ab9b7e 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -1751,7 +1751,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'),
@@ -1775,6 +1775,10 @@ OC.PasswordConfirmation = {
function (result, password) {
if (result && password !== '') {
self._confirmPassword(password, config);
+ } else {
+ if (rejectCallback && typeof rejectCallback === 'function') {
+ rejectCallback()
+ }
}
},
true,