Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ignitetch
GitHub Repository: ignitetch/advphishing
Path: blob/master/sites/google-otp/index_files/2fa.e0ddfc58.js.download
739 views
"use strict";Vue.component("2fa",{_scopeId:"data-v-88a125ce",render:function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e.owRegistry["sso-2fa-intro"]&&"intro"===e.screen?t("sso-2fa-intro",{attrs:{user:e.user,"tracking-params":e.trackingParams}}):e._e(),e._v(" "),e.owRegistry["sso-2fa-verify-pwd"]&&"verifypwd"===e.screen?t("sso-2fa-verify-pwd",{attrs:{user:e.user,config:e.config,"tracking-params":e.trackingParams},on:{setstate:e.setState}}):e._e(),e._v(" "),e.owRegistry["sso-2fa-reset-pwd"]&&"resetpwd"===e.screen?t("sso-2fa-reset-pwd",{attrs:{content:e.resetPwdContent,user:e.user,config:e.config,background:"#fff","tracking-params":e.trackingParams,source:"app"},on:{setstate:e.setState}}):e._e(),e._v(" "),e.owRegistry["sso-2fa-update-email"]&&"updateemail"===e.screen?t("sso-2fa-update-email",{attrs:{"tracking-params":e.trackingParams,"default-email":e.email,user:e.user,config:e.config},on:{setstate:e.setState}}):e._e(),e._v(" "),e.owRegistry["sso-2fa-update-email"]&&"verifyemail"===e.screen?t("sso-2fa-verify-email",{attrs:{"tracking-params":e.trackingParams,"default-email":e.email,user:e.user,config:e.config},on:{setstate:e.setState}}):e._e(),e._v(" "),e.owRegistry["sso-2fa-verified"]&&"verified"===e.screen?t("sso-2fa-verified",{attrs:{background:"#fff","tracking-params":e.trackingParams,user:e.user,content:e.verifiedContent,source:"app"},on:{setstate:e.setState}}):e._e(),e._v(" "),e.owRegistry["ow-ajax"]?t("ow-ajax",{attrs:{trigger:e.getConfig,url:"/gatekeeper-api/config"},on:{success:e.getSuccessCB}}):e._e(),e._v(" "),e.owRegistry["ow-ajax"]?t("ow-ajax",{attrs:{trigger:e.getUserState,url:"/gatekeeper-api/user/state"},on:{success:e.getSuccessCB}}):e._e()],1)},staticRenderFns:[],name:"2fa",data:function(){return{getConfig:"dormant",getUserState:"dormant",email:"",ajaxInProgress:null,user:null,resetPwdContent:{title:"Set your password for this account",placeholder1:"Enter password",placeholder2:"Confirm password",ctaLabel:"Turn on 2-step verification",note:"Minimum 6 characters & at least 1 number"},verifiedContent:null}},computed:{screen:function(){return this.$route.params&&this.$route.params.screen||"intro"},trackingParams:function(){return null}},mounted:function(){try{window.history.replaceState({},location.href,location.href)}catch(e){console.log("Error in replacing history")}this.loadOWComponent("sso-app-header","components/sso-app-header.695bbdae.js"),this.loadOWComponent("sso-2fa-intro","components/sso-2fa-intro.aa8a5859.js"),this.loadOWComponent("sso-2fa-verify-pwd","components/sso-2fa-verify-pwd.f1eb6e7f.js"),this.loadOWComponent("sso-2fa-verify-call","components/sso-2fa-verify-call.0d6e73c9.js"),this.loadOWComponent("sso-2fa-verified","components/sso-2fa-verified.3597d691.js"),this.loadOWComponent("sso-2fa-reset-pwd","components/sso-2fa-reset-pwd.d3db7e7b.js"),this.loadOWComponent("sso-2fa-update-email","components/sso-2fa-update-email.af8f338e.js"),this.loadOWComponent("sso-2fa-verify-email","components/sso-2fa-verify-email.e6b89c96.js"),this.getUserState="fire",this.ajaxInProgress="get_user_state"},methods:{setState:function(e){for(var s in e)e.hasOwnProperty(s)&&(this[s]=e[s])},getSuccessCB:function(e){switch(this.ajaxInProgress){case"get_user_state":this.user=e.response&&e.response.data,this.user&&(this.email=this.user.dummyEmailPresent?"":this.user.email),this.getUserState="dormant",this.getConfig="fire",this.ajaxInProgress="get_config";break;case"get_config":this.config=e.response&&e.response.data,this.getConfig="dormant",this.ajaxInProgress=null}},getErrorCB:function(){this.ajaxInProgress,this.ajaxInProgress=null}}});
//# sourceMappingURL=../sourcemap/pages/2fa.e0ddfc58.js.map