PageSourceSearch

https://www.zesty.io/_next/static/chunks/pages/profile/security-673667acb290b865.js

js zesty.io collected 2026-10-02 05:43:51 UTC 5,408 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5866],{53960:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/security",function(){return n(55788)}])},6954:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var a=n(85893);n(67294);var s=n(9008),i=n.n(s);let o=e=>{let{title:t="Accounts",description:n="Accounts",ogimage:s="https://kfg6bckb.media.zestyio.com/zesty-share-image-generic.png?width=1200"}=e;return(0,a.jsxs)(i(),{children:[(0,a.jsx)("title",{children:t}),(0,a.jsx)("link",{rel:"icon",href:"https://brand.zesty.io/favicon.png",type:"image/png"}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, shrink-to-fit=no"}),(0,a.jsx)("meta",{property:"og:title",content:t}),(0,a.jsx)("meta",{name:"description",value:n}),(0,a.jsx)("meta",{property:"og:description",content:n}),(0,a.jsx)("meta",{property:"og:image",content:s})]})}},55788:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return c},default:function(){return l}});var a=n(85893),s=n(67294),i=n(69181),o=n(40209),r=n(53342),c=!0;function l(){let{setuserInfo:e,ZestyAPI:t}=(0,i.q)(e=>e),[n,c]=(0,s.useState)(""),l=async n=>{let a=await t.getUser(n);e(a?.data)};return(0,s.useEffect)(()=>{(async()=>{c((await t.verify()).meta.userZuid)})()},[]),(0,s.useEffect)(()=>{n&&l(n)},[n]),(0,a.jsx)(r.ProfileContainer,{children:(0,a.jsx)(o.c,{getUser:async()=>await l(n)})})}},40209:function(e,t,n){"use strict";n.d(t,{c:function(){return f}});var a=n(85893),s=n(73653),i=n(86886),o=n(90629),r=n(51233),c=n(15861),l=n(69417),d=n(82175),u=n(57354),h=n(69181),m=n(73518),w=n(48837),p=n(20377),y=n(23621),x=n(67294);let f=e=>{let{getUser:t}=e,{userInfo:n,ZestyAPI:f}=(0,h.q)(e=>e),g=n?.authyEnabled,{enqueueSnackbar:b}=(0,p.Ds)(),[j,Z]=(0,x.useState)(!1),P=async e=>{let{oldPassword:t,newPassword:a}=e,s=n.ZUID,i=await f.updateUser(s,{oldPassword:t,password:a},"?action=updatePassword");await (0,y.notistackMessage)(b,{message:"Successfully changed password!",callback:async()=>{window.location.replace("/logout")}},i)},k=(0,d.TA)({validationSchema:w.h.twoFactorAuth,initialValues:{areaCode:"",phoneNumber:""},onSubmit:async e=>{await v(e),k.resetForm()}}),S=(0,d.TA)({validationSchema:w.h.password,initialValues:{oldPassword:"",newPassword:"",confirmNewPassword:""},onSubmit:async e=>{await P(e),S.resetForm()}}),v=async e=>{let{areaCode:a,phoneNumber:s}=e,i=n.ZUID,o=await f.updateUser(i,{authyPhoneCountryCode:a,authyPhoneNumber:s,submitted:!1},"?action=enableAuthy");await (0,y.notistackMessage)(b,{message:"Successfully enabled authy!",callback:async()=>await t()},o)},_=async()=>{Z(!0);let e=n.ZUID,a=await f.updateUser(e,{authyEnabled:!1});await (0,y.notistackMessage)(b,{message:"Successfully disabled authy!"},a),Z(!1),await t()};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.sv,{title:"Security",description:"Manage your Authentication"}),(0,a.jsxs)(i.ZP,{container:!0,px:4,spacing:2,children:[(0,a.jsx)(i.ZP,{item:!0,lg:6,xs:12,children:(0,a.jsx)(o.Z,{boxShadow:4,sx:{p:4,height:"100%"},children:(0,a.jsx)("form",{noValidate:!0,onSubmit:S.handleSubmit,children:(0,a.jsxs)(r.Z,{spacing:2,children:[(0,a.jsx)(c.Z,{variant:"h6",children:"Change Password"}),(0,a.jsx)(m.yt,{name:"oldPassword",type:"password",customLabel:"Old Password",formik:S}),(0,a.jsx)(m.yt,{name:"newPassword",type:"password",customLabel:"New Password",formik:S}),(0,a.jsx)(m.yt,{name:"confirmNewPassword",type:"password",customLabel:"Confirm New Password",formik:S}),(0,a.jsx)(s.Z,{variant:"contained",type:"submit",fullWidth:!0,loading:S.isSubmitting,children:"Submit"})]})})})}),(0,a.jsx)(i.ZP,{item:!0,lg:6,xs:12,children:(0,a.jsxs)(o.Z,{boxShadow:4,sx:{p:4,height:"100%"},children:[(0,a.jsxs)(r.Z,{spacing:2,children:[(0,a.jsx)(c.Z,{variant:"h6",children:"Two Factor Authentication"}),(0,a.jsx)(c.Z,{color:"text.secondary",children:"Information on the 2FA setup and the phone number that should be used."}),(0,a.jsx)(c.Z,{color:"text.secondary",children:"How to install the app and additional information"}),(0,a.jsx)(l.Z,{target:"_blank",rel:"noopener noreferrer",href:"https://authy.com/what-is-2fa/",endIcon:(0,a.jsx)(u.Z,{color:"primary"}),sx:{alignSelf:"end"},children:"Learn More"})]}),(0,a.jsx)("form",{noValidate:!0,onSubmit:k.handleSubmit,children:(0,a.jsxs)(r.Z,{spacing:2,children:[(0,a.jsxs)(r.Z,{mt:2,direction:"row",justifyContent:"space-between",children:[(0,a.jsx)(c.Z,{variant:"h6",children:"Phone number for 2FA"}),(0,a.jsx)("img",{src:"https://seeklogo.com/images/A/authy-logo-5598145895-seeklogo.com.png?v=637714439950000000",alt:"zesty auth",height:"40",width:"40"})]}),g?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r.Z,{direction:"row",spacing:1,children:[(0,a.jsx)(m.yt,{label:"Country Code",name:"areaCode",formik:k}),(0,a.jsx)(m.yt,{label:"Phone Number",name:"phoneNumber",formik:k})]}),(0,a.jsx)(s.Z,{disabled:!0,variant:"contained",loading:k.isSubmitting,fullWidth:!0,type:"submit",children:"Enable Two Factor Authentication"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(c.Z,{color:"text.secondary",children:[n?.authyPhoneCountryCode,n?.authyPhoneNumber]}),(0,a.jsx)(s.Z,{variant:"contained",fullWidth:!0,type:"submit",loading:j,onClick:_,children:"Disable Two Factor Authentication"})]})]})})]})})]})]})}}},function(e){e.O(0,[8166,3743,5121,7707,3845,2123,4801,6078,556,4957,9426,3342,3518,2888,9774,179],function(){return e(e.s=53960)}),_N_E=e.O()}]);

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.