0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.23.101.241


Current Path : /proc/thread-self/root/var/www/qpms/assets/
Upload File :
Current File : //proc/thread-self/root/var/www/qpms/assets/ChangePassword-CGhps1Wz.js

import{v as i,x as m,r as c,t as e,D as h,L as p,B as x,F as l,E as u}from"./index-BXGyQmrS.js";import{S as j}from"./index-Dmdyjymp.js";import{R as t,C as n}from"./row-BC5PwUrl.js";import"./responsiveObserver-BnSpyoMt.js";const g=s=>async(a,o)=>{const r=o();let d=localStorage.getItem("dbname");a({type:"SET_LOADER"}),await i.post("app.php?a=checkOldPassword&db="+d+"&oldpassword="+s+"&mobile="+r.loginfo.userData.fmobile+"&usertype="+r.loginfo.userData.fusertype),a({type:"UNSET_LOADER"})},b=s=>{const[a,o]=c.useState(""),r=async()=>{if(a==""){u("Enter Your Old Password");return}else await s.checkOldPassword(a)};return e.jsxs(h,{style:{margin:"6rem 10px 10px"},title:e.jsx("h6",{children:"Change Password"}),extra:e.jsx(j,{children:e.jsx(p,{to:"/",children:e.jsx(x,{type:"primary",danger:!0,children:"Exit"})})}),children:[e.jsx(t,{children:e.jsxs(n,{xs:24,sm:24,md:12,lg:8,xl:8,xxl:8,children:[e.jsx("label",{children:"User Name"}),e.jsx(l,{disabled:!0,style:{marginBottom:"10px"},name:"bankname",value:s.data.fteachname})]})}),e.jsx(t,{children:e.jsxs(n,{xs:24,sm:24,md:12,lg:8,xl:8,xxl:8,children:[e.jsx("label",{children:"Teacher Code"}),e.jsx(l,{disabled:!0,style:{marginBottom:"10px"},value:s.data.fregno})]})}),e.jsx(t,{children:e.jsxs(n,{xs:24,sm:24,md:12,lg:8,xl:8,xxl:8,children:[e.jsx("label",{children:"Mobile Number"}),e.jsx(l,{disabled:!0,style:{marginBottom:"10px"},value:s.data.fmobile})]})}),e.jsx(t,{children:e.jsxs(n,{xs:24,sm:24,md:12,lg:8,xl:8,xxl:8,children:[e.jsx("label",{children:"Enter Old Password"}),e.jsx(l,{style:{marginBottom:"10px"},value:a,maxLength:50,onChange:d=>o(d.target.value)})]})}),e.jsx(t,{children:e.jsx(x,{type:"primary",style:{marginBottom:"10px"},onClick:()=>{r()},children:"Get OTP"})})]})},y=s=>({data:s.loginfo.userData}),C=m(y,{checkOldPassword:g})(b);export{C as default};