/*! For license information please see settings-vue-settings-personal-password.js.LICENSE.txt */ (()=>{"use strict";var t,e={5738:(t,e,n)=>{var s=n(20144),o=n(13299),a=n.n(o),r=n(10861),i=n.n(r),l=n(22660),d=n.n(l),c=n(26937),u=n(79753),p=n(64024);const w={name:"PasswordSection",components:{NcSettingsSection:a(),NcButton:i(),NcPasswordField:d()},data:()=>({oldPass:"",newPass:""}),methods:{changePassword(){c.Z.post((0,u.generateUrl)("/settings/personal/changepassword"),{oldpassword:this.oldPass,newpassword:this.newPass}).then((t=>t.data)).then((t=>{"error"===t.status?(this.errorMessage=t.data.message,(0,p.x2)(t.data.message)):(0,p.s$)(t.data.message)}))}}};var h=n(93379),m=n.n(h),f=n(7795),g=n.n(f),v=n(90569),b=n.n(v),P=n(3565),y=n.n(P),A=n(19216),S=n.n(A),N=n(44589),x=n.n(N),C=n(73954),O={};O.styleTagTransform=x(),O.setAttributes=y(),O.insert=b().bind(null,"head"),O.domAPI=g(),O.insertStyleElement=S(),m()(C.Z,O),C.Z&&C.Z.locals&&C.Z.locals;const T=(0,n(51900).Z)(w,(function(){var t=this,e=t._self._c;return e("NcSettingsSection",{attrs:{title:t.t("settings","Password")}},[e("form",{attrs:{id:"passwordform",method:"POST"},on:{submit:function(e){return e.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(e){t.oldPass=e}}}),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(e){t.newPass=e}}}),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).exports;var F=n(31352);n.nc=btoa(OC.requestToken),s.default.prototype.t=F.Iu,s.default.prototype.n=F.uN,new s.default({el:"#security-password",name:"main-personal-password",render:t=>t(T)})},73954:(t,e,n)=>{n.d(e,{Z:()=>i});var s=n(87537),o=n.n(s),a=n(23645),r=n.n(a)()(o());r.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:";AAmGA;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