diff --git a/core/js/public/appconfig.js b/core/js/public/appconfig.js index de04f334ca..5021f78e2d 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, arguments)); + return; + } $.ajax({ type: method.toUpperCase(),