PageSourceSearch

https://smartedu.ai/build/assets/PasswordTab-DYStJMLM.js

js smartedu.ai collected 2026-10-05 15:08:11 UTC 2,694 bytes, 1 lines download raw bytes

1import{i as n,t as c}from"./react-C6JdJxIB.js";import{a as m}from"./index.esm-DxXUb9DD.js";import{t as p}from"./jsx-runtime-CGXBp6bb.js";var x=n(c(),1),s=p();function j(){const{data:r,setData:i,put:o,processing:l,errors:a,reset:d}=m({current_password:"",password:"",password_confirmation:""}),t=e=>{e.preventDefault(),o("/settings/password",{onSuccess:()=>d()})};return(0,s.jsx)("div",{className:"row",children:(0,s.jsx)("div",{className:"col-lg-8",children:(0,s.jsxs)("div",{className:"card",children:[(0,s.jsx)("div",{className:"card-header",children:(0,s.jsxs)("h6",{className:"mb-0",children:[(0,s.jsx)("i",{className:"ti ti-lock me-2"}),"Change Password"]})}),(0,s.jsx)("div",{className:"card-body",children:(0,s.jsxs)("form",{onSubmit:t,children:[(0,s.jsxs)("div",{className:"mb-3",children:[(0,s.jsx)("label",{className:"form-label",children:"Current Password"}),(0,s.jsx)("input",{type:"password",className:`form-control ${a.current_password?"is-invalid":""}`,value:r.current_password,onChange:e=>i("current_password",e.target.value),required:!0,autoComplete:"current-password"}),a.current_password&&(0,s.jsx)("div",{className:"invalid-feedback d-block",children:a.current_password})]}),(0,s.jsxs)("div",{className:"mb-3",children:[(0,s.jsx)("label",{className:"form-label",children:"New Password"}),(0,s.jsx)("input",{type:"password",className:`form-control ${a.password?"is-invalid":""}`,value:r.password,onChange:e=>i("password",e.target.value),required:!0,autoComplete:"new-password"}),a.password&&(0,s.jsx)("div",{className:"invalid-feedback d-block",children:a.password})]}),(0,s.jsxs)("div",{className:"mb-3",children:[(0,s.jsx)("label",{className:"form-label",children:"Confirm Password"}),(0,s.jsx)("input",{type:"password",className:`form-control ${a.password_confirmation?"is-invalid":""}`,value:r.password_confirmation,onChange:e=>i("password_confirmation",e.target.value),required:!0,autoComplete:"new-password"}),a.password_confirmation&&(0,s.jsx)("div",{className:"invalid-feedback d-block",children:a.password_confirmation})]}),(0,s.jsxs)("div",{className:"alert alert-info alert-dismissible fade show",role:"alert",children:[(0,s.jsx)("i",{className:"ti ti-info-circle me-2"}),(0,s.jsx)("strong",{children:"Password Requirements:"}),(0,s.jsxs)("ul",{className:"mb-0 mt-2",children:[(0,s.jsx)("li",{children:"At least 8 characters long"}),(0,s.jsx)("li",{children:"Mix of uppercase and lowercase letters"}),(0,s.jsx)("li",{children:"At least one number"})]})]}),(0,s.jsxs)("button",{type:"submit",disabled:l,className:"btn btn-primary btn-sm",children:[(0,s.jsx)("i",{className:"ti ti-check me-1"}),l?"Updating...":"Update Password"]})]})})]})})})}export{j 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.