PageSourceSearch

https://app.eqvista.com/build/assets/v3/SupportTwoFACodeIndexPage-8628a4ef.js

js eqvista.com collected 2026-09-24 09:53:22 UTC 7,812 bytes, 1 lines download raw bytes

1import{n as l,d as _,N as i,L as u}from"./main-a79477bd.js";import{B as c}from"./BaseButton-e60948fb.js";import{B as m}from"./BaseInputText-1f8dc0f8.js";import{T as p}from"./TheFlashAlerts-66e95c7a.js";import{B as f}from"./BaseBlockHeader-0daa82d4.js";import{B as b}from"./BaseFilterTableSelectInfo-71608b67.js";import{S as o}from"./SortService-fa3b0fae.js";import{F as h}from"./FilterService-631cc710.js";import{q as n}from"./700-33945e34.js";import{w as v}from"./FallbackUtils-f48609d9.js";import{B as T}from"./BaseBackendDataTableLined-ccc827e0.js";import{B as w}from"./BaseButtonContainer-c2b3c591.js";import{D as g}from"./DateFormatter-394ab976.js";import{a as d}from"./AdminPermissionService-eed23d16.js";import"./productUsage-9d408814.js";import"./FontAwesomeIcon-78ce7022.js";import"./BaseFormField-bb33a93d.js";import"./BaseSearch-719a657d.js";import"./NumberFormatter-ee7c1e6f.js";import"./BaseFilterCollection-2f9d4f91.js";import"./CollectionUtils-3c1828b1.js";import"./vue-autonumeric.min-31b4d087.js";import"./BaseDate-8a13d2d9.js";import"./InputMixin-e4836f08.js";import"./ObjectUtils-89f2450e.js";import"./BaseUtils-3068e455.js";import"./index.esm-5d4f622a.js";import"./BaseCheckboxWithLabel-c6b106e7.js";import"./BaseCheckbox-5f8199a8.js";import"./InertiaUrlUtils-9bed72e8.js";import"./BaseNoDataBox-49e9ed9e.js";import"./BaseSearchSelect-f710957c.js";import"./vue-select-5b4cafe9.js";import"./BaseDropdown-7b0fd886.js";import"./lodash-6671e769.js";const y={name:"TwoFAUsersTable",components:{BaseButtonContainer:w,BaseButton:c,BaseTooltipValue:_,BaseBackendDataTableLined:T},mixins:[g],data(){return{columns:{userId:{search:!0,name:"ID",sort:{type:o.SORT_TYPE_NUMBER},hidden:!0},first_name:{search:!0,name:"First name",sort:{type:o.SORT_TYPE_STRING}},last_name:{search:!0,name:"Last name",sort:{type:o.SORT_TYPE_STRING}},email:{search:!0,name:"Email",sort:{type:o.SORT_TYPE_STRING}},status:{search:!1,name:"2FA status",sort:{type:o.SORT_TYPE_STRING}},two_factor_disabled_by_admin_until:{search:!1,name:"Expiry date",sort:{type:o.SORT_TYPE_DATE}},two_factor_toggled_by_admin:{search:!1,name:"Modified by",sort:{type:o.SORT_TYPE_STRING}},actionsColumn:{name:"Actions",search:!1}},BaseTableFilterCheckboxInputs:b}},computed:{canUpdateUser(){return d.can("users","update")},FilterService(){return h},SortService(){return o}},methods:{route:n,enable2FA(s){i.post(n("admin.users.enableTwoFactor",{user:s}),{},{onSuccess:()=>{this.fetchData()}})},disable2FA(s){i.post(n("admin.users.disableTwoFactor",{user:s}),{},{onSuccess:()=>{this.fetchData()}})},fetchData(){this.$refs.dataTable&&this.$refs.dataTable.$refs.baseBackendFilterTable&&this.$refs.dataTable.$refs.baseBackendFilterTable.fetchData()},withFallback:v}};var F=function(){var e=this,t=e._self._c;return t("div",[t("BaseBackendDataTableLined",{ref:"dataTable",attrs:{url:e.route("admin.users.get2FADataTable"),"no-data-text":"No users found","no-filtered-data-text":"No users match your search","no-data-white-background":!0,"search-placeholder":"Search user","search-title":"Search by name or email","show-filters":!0,"show-search":!0,pagination:!0,"pagination-select-show":!0,"filter-multiple":!0,"selection-mode":"none",columns:e.columns,"show-column-visibility":!0,"trim-search-string":!0},scopedSlots:e._u([{key:"first_name-body",fn:function({row:a}){return[t("BaseTooltipValue",{staticClass:"overflow-tooltip__first-name",attrs:{content:e.withFallback(a.first_name)}})]}},{key:"last_name-body",fn:function({row:a}){return[t("BaseTooltipValue",{staticClass:"overflow-tooltip__last-name",attrs:{content:e.withFallback(a.last_name)}})]}},{key:"email-body",fn:function({row:a}){return[t("BaseTooltipValue",{staticClass:"overflow-tooltip__email",attrs:{content:e.withFallback(a.email)}})]}},{key:"status-body",fn:function({row:a}){return[t("div",{staticClass:"overflow-tooltip__bool-value"}),a.two_factor_disabled_by_admin?t("span",{staticClass:"text-red"},[e._v(" Disabled ")]):t("span",{staticClass:"text-green-darkest"},[e._v("Active")])]}},{key:"two_factor_disabled_by_admin_until-body",fn:function({row:a}){return[a.two_factor_disabled_by_admin?t("span",[e._v(" "+e._s(e.withFallback(e.formatDate(a.two_factor_disabled_by_admin_until)))+" ")]):t("span",[e._v("-")])]}},{key:"two_factor_toggled_by_admin-body",fn:function({row:a}){var r;return[t("BaseTooltipValue",{staticClass:"overflow-tooltip__two-factor-toggled-by-admin",attrs:{content:e.withFallback((r=a.two_factor_toggled_by_admin)==null?void 0:r.full_name)}})]}},{key:"actionsColumn-body",fn:function({row:a}){return[t("BaseButtonContainer",{attrs:{wrap:!1}},[e.canUpdateUser&&a.two_factor_disabled_by_admin?t("BaseButton",{staticClass:"btn--blue",on:{"active-click":function(r){return e.enable2FA(a)}}},[e._v(" Enable ")]):e.canUpdateUser?t("BaseButton",{staticClass:"btn--blue",on:{"active-click":function(r){return e.disable2FA(a)}}}
1,[e._v(" Disable ")]):e._e()],1)]}}])})],1)},B=[],C=l(y,F,B,!1,null,"8d1439c1",null,null);const x=C.exports;const S={name:"TwoFAIndexPage",components:{TwoFAUsersTable:x,TheFlashAlerts:p,BaseInputText:m,BaseButton:c,InertiaHead:u,BaseBlockHeader:f},props:{supportTwoFACodes:{type:Array,required:!0}},computed:{canManageTwoFACode(){return d.can("2fa-help","create")}},data(){return{processing:!1,userEmail:null,code:null}},methods:{createCode(){this.processing=!0,i.post(route("supportTwoFAHelp.createCode"),{email:this.userEmail},{onFinish:()=>{this.processing=!1}})},redeemCode(){this.processing=!0,i.post(route("supportTwoFAHelp.redeemCode"),{code:this.code.replaceAll("-",""),email:this.userEmail},{onSuccess:()=>{this.userEmail=null,this.code=null},onFinish:()=>{this.processing=!1}})}}};var k=function(){var e=this,t=e._self._c;return t("div",{staticClass:"two-fa-index-page"},[t("InertiaHead",{attrs:{title:"Support 2FA Code Help"}}),t("TheFlashAlerts"),t("BaseBlockHeader",{attrs:{title:"Support 2FA Code Help"}}),e._m(0),t("div",{staticClass:"two-fa-index-page__fields two-fa-index-page__margin-top"},[t("div",{staticClass:"two-fa-index-page__send two-fa-index-page__field"},[t("BaseInputText",{attrs:{disabled:e.processing,label:"User Email",placeholder:"Enter email",required:""},model:{value:e.userEmail,callback:function(a){e.userEmail=a},expression:"userEmail"}}),e.canManageTwoFACode?t("BaseButton",{staticClass:"btn--blue two-fa-index-page__margin-top",attrs:{disabled:e.processing},on:{"active-click":e.createCode}}
1,[e._v(" Send ")]):e._e()],1),t("div",{staticClass:"two-fa-index-page__code two-fa-index-page__field"},[t("BaseInputText",{attrs:{disabled:e.processing,label:"User Code",placeholder:"User Code"},model:{value:e.code,callback:function(a){e.code=a},expression:"code"}}),e.canManageTwoFACode?t("BaseButton",{staticClass:"btn--blue two-fa-index-page__margin-top",attrs:{disabled:e.processing},on:{"active-click":e.redeemCode}},[e._v(" Redeem ")]):e._e()],1)]),t("div",{staticClass:"two-fa-index-page__table"},[t("TwoFAUsersTable")],1)],1)},A=[function(){var s=this,e=s._self._c;return e("div",{staticClass:"two-fa-index-page__info"},[s._v(" Enter the user's email and click send. User will be sent a special code that is six characters long and begins with S (do not tell the user, that it begins with S, it only helps "),e("b",[s._v("you")]),s._v(" to distinguish if they are giving you the right code). "),e("br"),e("br"),s._v(' After they give you the code, enter it into the "code" field below (email also has to be filled out) and click redeem. If the code is correct it will let the user bypass the confirmation code for the next 5 days. '),e("br"),e("br"),s._v(" You can try sending the code multiple times if the user argues that he didnt receive it, but only the last 3 codes are valid. Codes are valid for 30 minutes. ")])}],E=l(S,k,A,!1,null,"1792c68c",null,null);const ue=E.exports;export{ue 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.