Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bhikandeshmukh
GitHub Repository: bhikandeshmukh/shark
Path: blob/master/phs/ola-otpbypass/otp_files/reset-password.570b5988.js.download
996 views
"use strict";Vue.component("reset-password",{_scopeId:"data-v-12f7b25d",render:function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e.owRegistry["sso-reset-password"]&&"resetpwdsuccess"===e.screen?t("sso-reset-password",{attrs:{"tracking-params":e.trackingParams,token:e.token,userId:e.userId,content:e.verifiedContent},on:{setstate:e.setState}}):e._e(),e._v(" "),e.owRegistry["sso-2fa-reset-pwd"]&&"resetpwd"===e.screen?t("sso-2fa-reset-pwd",{attrs:{"tracking-params":e.trackingParams,token:e.token,userId:e.userId,content:e.resetPwdContent,background:"#f5f5f5",config:e.config,source:"web","next-screen":"resetpwdsuccess"},on:{setstate:e.setState}}):e._e(),e._v(" "),e.owRegistry["sso-2fa-verified"]&&"verified"===e.screen?t("sso-2fa-verified",{attrs:{background:"#f5f5f5","tracking-params":e.trackingParams,content:e.verifiedContent,source:"web"},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()],1)},staticRenderFns:[],name:"resetPassword",data:function(){return{screen:"resetpwd",config:null,getConfig:"dormant",email:"",ajaxInProgress:null,resetPwdContent:{title:"Set a new account password",placeholder1:"Enter new password",placeholder2:"Confirm new password",ctaLabel:"Save",note:"Minimum 8 characters, at least 1 letter and 1 number"},verifiedContent:null}},computed:{token:function(){return this.$route.params&&this.$route.params.token||""},userId:function(){return this.$route.params&&this.$route.params.userId||""},trackingParams:function(){return null}},mounted:function(){this.loadOWComponent("sso-reset-password","components/sso-reset-password.4ce98d69.js"),this.loadOWComponent("sso-2fa-reset-pwd","components/sso-2fa-reset-pwd.d3db7e7b.js"),this.loadOWComponent("sso-2fa-verified","components/sso-2fa-verified.3597d691.js"),this.getConfig="fire",this.ajaxInProgress="get_config",this.trackEvent({eventName:"reset_password_clicked_email",eventValue:this.trackingParams})},methods:{setState:function(e){for(var s in e)e.hasOwnProperty(s)&&(this[s]=e[s])},getSuccessCB:function(e){switch(this.ajaxInProgress){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/reset-password.570b5988.js.map