/*! For license information please see settings-vue-settings-personal-password.js.LICENSE.txt */ !function(){"use strict";var t,e,n,r={423:function(t,e,n){var r=n(20144),o=n(13299),s=n.n(o),a=n(10861),i=n.n(a),c=n(22660),u=n.n(c),l=n(48033),d=n(79753),p=n(64024),f={name:"PasswordSection",components:{NcSettingsSection:s(),NcButton:i(),NcPasswordField:u()},data:function(){return{oldPass:"",newPass:""}},methods:{changePassword:function(){var t=this;l.Z.post((0,d.generateUrl)("/settings/personal/changepassword"),{oldpassword:this.oldPass,newpassword:this.newPass}).then((function(t){return t.data})).then((function(e){"error"===e.status?(t.errorMessage=e.data.message,(0,p.x2)(e.data.message)):(0,p.s$)(e.data.message)}))}}},m=n(93379),h=n.n(m),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(23482),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;var O=(0,n(51900).Z)(f,(function(){var t=this,e=t._self._c;return e("NcSettingsSection",{attrs:{name: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"),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"),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),k=O.exports,j=n(31352);n.nc=btoa(OC.requestToken),r.default.prototype.t=j.Iu,r.default.prototype.n=j.uN,new r.default({el:"#security-password",name:"main-personal-password",render:function(t){return t(k)}})},23482:function(t,e,n){var r=n(87537),o=n.n(r),s=n(23645),a=n.n(s)()(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:";AAiGA;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