diff options
Diffstat (limited to 'core/js/public/appconfig.js')
-rw-r--r-- | core/js/public/appconfig.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/js/public/appconfig.js b/core/js/public/appconfig.js index de04f334ca8..d84ddaab404 100644 --- a/core/js/public/appconfig.js +++ b/core/js/public/appconfig.js @@ -33,6 +33,10 @@ OCP.AppConfig = { * @internal */ _call: function(method, endpoint, options) { + if ((method === 'post' || method === 'delete') && OC.PasswordConfirmation.requiresPasswordConfirmation()) { + OC.PasswordConfirmation.requirePasswordConfirmation(_.bind(this._call, this, method, endpoint, options)); + return; + } $.ajax({ type: method.toUpperCase(), |