/*! For license information please see settings-vue-settings-personal-password.js.LICENSE.txt */ (()=>{"use strict";var t,e,n,s={5738:(t,e,n)=>{var s=n(20144),r=n(13299),o=n.n(r),a=n(10861),i=n.n(a),l=n(22660),d=n.n(l),c=n(4820),u=n(79753),p=n(64024);const m={name:"PasswordSection",components:{NcSettingsSection:o(),NcButton:i(),NcPasswordField:d()},data:()=>({oldPass:"",newPass:""}),methods:{changePassword(){c.default.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 f=n(93379),h=n.n(f),w=n(7795),g=n.n(w),v=n(90569),b=n.n(v),P=n(3565),y=n.n(P),A=n(19216),N=n.n(A),S=n(44589),x=n.n(S),C=n(73954),T={};T.styleTagTransform=x(),T.setAttributes=y(),T.insert=b().bind(null,"head"),T.domAPI=g(),T.insertStyleElement=N(),h()(C.Z,T),C.Z&&C.Z.locals&&C.Z.locals;const O=(0,n(51900).Z)(m,(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 k=n(31352);n.nc=btoa(OC.requestToken),s.default.prototype.t=k.Iu,s.default.prototype.n=k.uN,new s.default({el:"#security-password",name:"main-personal-password",render:t=>t(O)})},73954:(t,e,n)=>{n.d(e,{Z:()=>i});var s=n(87537),r=n.n(s),o=n(23645),a=n.n(o)()(r());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:";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