PageSourceSearch

https://op.aranykornyp.hu/assets/PasswordChangeView-ff39e7ec.js

js aranykornyp.hu collected 2026-10-07 01:48:35 UTC 6,113 bytes, 1 lines download raw bytes

1import{_ as n}from"./PasswordWithShowBtn-b52d0f94.js";import{_ as u,f as c,b as h,m as g,I as p,o as i,c as w,a as o,g as C,i as l,t as d,d as m}from"./index-4792febe.js";const k={key:0},P={class:"mx-auto mt-3",style:{"max-width":"30rem"}},b={name:"passwordChangeForm",ref:"passwordChangeFormRef"},z={class:"mb-3"},v={id:"currentPasswordFeedback",class:"d-block"},y={class:"mb-3"},j={id:"newPasswordFeedback",class:"d-block"},F={class:"mb-3"},V={id:"newPasswordConfirmationFeedback",class:"d-block"},A={class:"d-flex flex-column m-auto mt-4",style:{width:"fit-content"}},D={computed:{...c({user:"user",userRole:"userRole"})},data(){return{passwordChangeData:{currentPassword:null,newPassword:null,newPasswordConfirmation:null},passwordChangeFeedback:{currentPassword:null,newPassword:null,newPasswordConfirmation:null}}},created(){this.userRole=="Registration Finished"&&this.user.mustChangePassword==!1&&this.$router.push("/")},mounted(){var a=[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));a.map(function(e){return new h.Tooltip(e)}),document.getElementById("newPassword").onpaste=e=>e.preventDefault(),document.getElementById("newPasswordConfirmation").onpaste=e=>e.preventDefault()},methods:{...g(["RequestPasswordChange","ClearMustChangePassword"]),resetpasswordChangeFeedback(){this.passwordChangeFeedback={currentPassword:null,newPassword:null,newPasswordConfirmation:null},this.$refs.passwordChangeFormRef.querySelectorAll(".is-invalid").forEach(a=>{a.classList.remove("is-invalid")}),this.$refs.passwordChangeFormRef.querySelectorAll(".invalid-feedback").forEach(a=>{a.classList.remove("invalid-feedback")}),this.$refs.passwordChangeFormRef.querySelectorAll(".is-valid").forEach(a=>{a.classList.remove("is-valid")}),this.$refs.passwordChangeFormRef.querySelectorAll(".valid-feedback").forEach(a=>{a.classList.remove("valid-feedback")})},isPasswordValid(a){let e=0;const s=/[a-z]/,t=/[A-Z]/,r=/[0-9]/,f=/[^a-zA-Z0-9]/;return s.test(a)&&e++,t.test(a)&&e++,r.test(a)&&e++,f.test(a)&&e++,a.length>=12&&e>=3},async startPasswordChange(){this.resetpasswordChangeFeedback();let a=[];if(this.passwordChangeData.currentPassword||a.push({currentPassword:"A mező kitöltése kötelező"}),this.passwordChangeData.newPassword?this.isPasswordValid(this.passwordChangeData.newPassword)||a.push({newPassword:"Az új jelszó nem felel meg a követelményeknek."}):a.push({newPassword:"A mező kitöltése kötelező"}),this.passwordChangeData.newPasswordConfirmation?this.passwordChangeData.newPasswordConfirmation!=this.passwordChangeData.newPassword?a.push({newPasswordConfirmation:"Az új jelszó és annak megerősítése nem egyezik."}):this.isPasswordValid(this.passwordChangeData.newPasswordConfirmation)||a.push({newPasswordConfirmation:"Az új jelszó nem felel meg a követelményeknek."}):a.push({newPasswordConfirmation:"A mező kitöltése kötelező"}),a.length)a.forEach(e=>{var t,r;let s=Object.keys(e)[0];(t=this.$refs.passwordChangeFormRef.querySelector(`#${s}`))==null||t.classList.add("is-invalid"),this.passwordChangeFeedback[s]=e[s],(r=this.$refs.passwordChangeFormRef.querySelector(`#${s}Feedback`))==null||r.classList.add("invalid-feedback")});else if(await this.RequestPasswordChange(this.passwordChangeData)){let s=[{type:"Successes",messageObject:new p({message:"A jelszó megváltozott",timeout:0})}];this.$cache.set("toastCache",JSON.stringify(s)),await this.ClearMustChangePassword(),window.location.replace("/torzsadatok")}else this.$toasthelper.createToast("error","Hiba történt a lekérdezés során. Kérjük, próbálja meg újra!")}}},R=Object.assign(D,{__name:"PasswordChangeView",setup(a){return(e,s)=>(i(),w("div",null,[s[8]||(s[8]=o("p",{class:"h2 h-underline"},"Jelszó módosítás",-1)),e.userRole&&(e.userRole=="With Generated Password"||e.userRole=="With SMS Password"||e.user.mustChangePassword==!0)?(i(),w("div",k,[...s[4]||(s[4]=[o("div",{class:"alert alert-info",role:"alert"}," Az Ön jelszavának hossza rövidebb az MNB új biztonsági ajánlásában meghatározottnál. Kérjük, változtassa meg jelszavát! ",-1)])])):C("",!0),o("div",P,[o("form",b,[o("div",z,[s[5]||(s[5]=o("label",{for:"currentPassword",class:"form-label fw-bold"},"Jelenlegi jelszó *",-1)),l(n,{class:"form-control",id:"currentPassword",name:"currentPassword",modelValue:e.passwordChangeData.currentPassword,"onUpdate:modelValue":s[0]||(s[0]=t=>e.passwordChangeData.currentPassword=t)},null,8,["modelValue"]),o("div",v,d(e.passwordChangeFeedback.currentPassword),1)]),o("div",y,[s[6]||(s[6]=o("label",{for:"newPassword",class:"form-label fw-bold"},[m("Új jelszó "),o("i",{"data-bs-toggle":"tooltip","data-bs-placement":"left",title:"Az új jelszónak legalább 12 karakter hosszúnak kell lennie, tartalmaznia kell kis- és nagybetűket valamint számjegyet és/vagy speciális karaktert.",class:"bi bi-info-circle-fill info-golden"}),m(" *")],-1)),l(n,{autocomplete:"off",class:"form-control",id:"newPassword",name:"newPassword",modelValue:e.passwordChangeData.newPassword,"onUpdate:modelValue":s[1]||(s[1]=t=>e.passwordChangeData.newPassword=t),"data-bs-toggle":"tooltip","data-bs-placement":"left",title:"Az új jelszónak legalább 12 karakter hosszúnak kell lennie, tartalmaznia kell kis- és nagybetűket valamint számjegyet és/vagy speciális karaktert."},null,8,["modelValue"]),o("div",j,d(e.passwordChangeFeedback.newPassword),1)]),o("div",F,[s[7]||(s[7]=o("label",{for:"newPasswordConfirmation",class:"form-label fw-bold"},"Új jelszó megerősítése *",-1)),l(n,{autocomplete:"off",class:"form-control",id:"newPasswordConfirmation",name:"newPasswordConfirmation",modelValue:e.passwordChangeData.newPasswordConfirmation,"onUpdate:modelValue":s[2]||(s[2]=t=>e.passwordChangeData.newPasswordConfirmation=t)},null,8,["modelValue"]),o("div",V,d(e.passwordChangeFeedback.newPasswordConfirmation),1)])],512)]),o("div",A,[o("button",{type:"button",class:"btn btn-secondary px-5",onClick:s[3]||(s[3]=(...t)=>e.startPasswordChange&&e.startPasswordChange(...t))}," Jelszó módosítása ")])]))}}),q=u(R,[["__scopeId","data-v-8c2516df"]]);export{q as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.