/*! For license information please see settings-vue-settings-personal-password.js.LICENSE.txt */ !function(){"use strict";var t,n={28718:function(t,n,e){var s=e(20144),o=e(13299),r=e.n(o),a=e(10861),i=e.n(a),l=e(22660),d=e.n(l),c=e(4820),u=e(79753),p=e(26932),f={name:"PasswordSection",components:{NcSettingsSection:r(),NcButton:i(),NcPasswordField:d()},data:function(){return{oldPass:"",newPass:""}},methods:{changePassword:function(){var t=this;c.default.post((0,u.generateUrl)("/settings/personal/changepassword"),{oldpassword:this.oldPass,newpassword:this.newPass}).then((function(t){return t.data})).then((function(n){"error"===n.status?(t.errorMessage=n.data.message,(0,p.x2)(n.data.message)):(0,p.s$)(n.data.message)}))}}},w=e(93379),m=e.n(w),h=e(7795),g=e.n(h),v=e(90569),P=e.n(v),b=e(3565),y=e.n(b),A=e(19216),S=e.n(A),N=e(44589),x=e.n(N),C=e(37234),O={};O.styleTagTransform=x(),O.setAttributes=y(),O.insert=P().bind(null,"head"),O.domAPI=g(),O.insertStyleElement=S(),m()(C.Z,O),C.Z&&C.Z.locals&&C.Z.locals;var T=(0,e(51900).Z)(f,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("NcSettingsSection",{attrs:{title:t.t("settings","Password")}},[e("form",{attrs:{id:"passwordform",method:"POST"},on:{submit:function(n){return n.preventDefault(),t.changePassword.apply(null,arguments)}}},[e("NcPasswordField",{attrs:{id:"old-pass",label:t.t("settings","Current password"),"label-visible":!0,name:"oldpassword",value:t.oldPass,autocomplete:"current-password",autocapitalize:"none",autocorrect:"off"},on:{"update:value":function(n){t.oldPass=n}}}),t._v(" "),e("NcPasswordField",{attrs:{id:"new-pass",label:t.t("settings","New password"),"label-visible":!0,value:t.newPass,maxlength:469,autocomplete:"new-password",autocapitalize:"none",autocorrect:"off","check-password-strength":!0},on:{"update:value":function(n){t.newPass=n}}}),t._v(" "),e("NcButton",{attrs:{type:"primary","native-type":"submit",disabled:0===t.newPass.length||0===t.oldPass.length}},[t._v("\n\t\t\t"+t._s(t.t("settings","Change password"))+"\n\t\t")])],1)])}),[],!1,null,null,null),F=T.exports,j=e(9944);e.nc=btoa(OC.requestToken),s.ZP.prototype.t=j.translate,s.ZP.prototype.n=j.translatePlural,new s.ZP({el:"#security-password",name:"main-personal-password",render:function(t){return t(F)}})},37234:function(t,n,e){var s=e(87537),o=e.n(s),r=e(23645),a=e.n(r)()(o());a.push([t.id,"\n#passwordform {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 1rem;\n\tmax-width: 400px;\n}\n","",{version:3,sources:["webpack://./apps/settings/src/components/PasswordSection.vue"],names:[],mappings:";AA2FA;CACA,aAAA;CACA,sBAAA;CACA,SAAA;CACA,gBAAA;AACA",sourcesContent:['\x3c!--\n - @copyright 2022 Carl Schwan \n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see .\n --\x3e\n\n\n