PageSourceSearch

https://neurohr.bytes.software/keep/2024003/js/9561.js

js bytes.software collected 2026-10-08 23:14:54 UTC 4,481 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9561],{39561:(e,t,o)=>{o.r(t),o.d(t,{default:()=>_});var s=o(30089),n=o(21253),r=o(1231),a=o(48122),l=o(20109),u=o(91777),c=o(22369);const i={props:{},data:function(){return{show_password:!1,loading:!1,show_token_2fa:!0,login_successful:!1,mfa_enabled_successful:!1,login_error:!1}},watch:{user_email:function(){this.mfa_enabled_successful=!1,this.login_error=!1},user_password:function(){this.mfa_enabled_successful=!1,this.login_error=!1},user_token_2fa:function(){this.mfa_enabled_successful=!1,this.login_error=!1}},methods:{testLogin:function(){var e=this;this.$store.state.keep.noInternetConnection||(this.loading=!0,axios.post("/api/t/two-factor-authentication/enable",{email:this.user_email,password:this.user_password,token_2fa:this.user_token_2fa}).then((function(t){e.mfa_enabled_successful=t.data.mfa_enabled,e.$emit("mfa_enabled_successful"),e.login_error=!1,e.loading=!1})).catch((function(t){e.loading=!1,console.error(t.response),console.error(t.response.data.msg),422==t.response.status&&(e.login_error=!0,e.mfa_enabled_successful=!1)})))}},mounted:function(){}};const _=(0,o(14486).A)(i,(function(){var e=this,t=e._self._c;return t(a.A,{attrs:{fluid:"","text-xs-center":""}},[t(c.A,[t(r.A,{attrs:{cols:"12"}},[t(l.A,{scopedSlots:e._u([{key:"default",fn:function(){return[t("input-string",{attrs:{maxlength:"250",name:"email",autocomplete:"email",type:"text",label:e.$root.evaluate_language_line_ucfirst("Keep","EMAIL"),required:""},model:{value:e.user_email,callback:function(t){e.user_email=t},expression:"user_email"}})]},proxy:!0}])})],1)],1),e._v(" "),t(c.A,[t(r.A,{attrs:{cols:"12"}},[t(l.A,{scopedSlots:e._u([{key:"default",fn:function(){return[t("input-string",{attrs:{maxlength:"250",name:"current-password",autocomplete:"current-password",type:e.show_password?"text":"password",label:e.$root.evaluate_language_line_ucfirst("Keep","PASSWORD"),required:""},scopedSlots:e._u([{key:"append",fn:function(){return[e.show_password?t("keep-button",{key:"show_password_eye-slash",attrs:{color:"primary",icon:""},on:{click:function(t){e.show_password=!1}}},[t("fa-icon",[e._v(e._s(e.$root.faset)+" fa-eye-slash")])],1):t("keep-button",{key:"show_password_eye-open",attrs:{color:"primary",icon:""},on:{click:function(t){e.show_password=!0}}},[t("fa-icon",[e._v(e._s(e.$root.faset)+" fa-eye")])],1)]},proxy:!0}]),model:{value:e.user_password,callback:function(t){e.user_password=t},expression:"user_password"}})]},proxy:!0},e.show_token_2fa?null:{key:"append",fn:function(){return[t("keep-button",{attrs:{rounded:""},on:{click:function(t){e.show_token_2fa=!0}}},[e._v("\n                        2FA "),t("fa-icon",[e._v(e._s(e.$root.faset)+" fa-user-shield")])],1)]},proxy:!0}],null,!0)})],1)],1),e._v(" "),e.show_token_2fa?t(c.A,[t(r.A,{attrs:{cols:"12"}},[t("div",{staticStyle:{"max-width":"333px"}},[t(u.A,{attrs:{id:"mfa",length:"6",type:"number",tabindex:"2",maxlength:"250",required:"required",autofocus:"autofocus",autocomplete:"one-time-code","data-qa-selector":"two_fa_code_field",name:"otp"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.testLogin()},finish:function(t){return e.testLogin()}},model:{value:e.user_token_2fa,callback:function(t){e.user_token_2fa="string"==typeof t?t.trim():t},expression:"user_token_2fa"}})],1)])],1):e._e(),e._v(" "),e.mfa_enabled_successful?t(c.A,[t(r.A,{attrs:{cols:"12"}},[t(s.A,{attrs:{color:"success"}},[t(n.OQ,[t("h2",[t("ll",{attrs:{"first-letter-upper-case":"",component:"Keep",token:"LOGIN_SUCCESS"}})],1),e._v(" "),t("h2",[t("ll",{attrs:{"first-letter-upper-case":"",component:"Keep",token:"MFA_ENABLED"}}),e._v(" "),t("fa-icon",[e._v(e._s(e.$root.faset)+" fa-check-circle")])],1)])],1)],1)],1):e._e(),e._v(" "),e.login_error?t(c.A,[t(r.A,{attrs:{cols:"12"}},[t(s.A,{attrs:{color:"warning"}},[t(n.OQ,[t("h2",[t("ll",{attrs:{"first-letter-upper-case":"",component:"Keep",token:"LOGIN_FAILED"}})],1)])],1)],1)],1):e._e(),e._v(" "),t(c.A,[t(r.A,{attrs:{cols:"12"}},[e.loading||e.$store.state.keep.noInternetConnection?t("keep-button",{attrs:{color:"primary",block:"",disabled:""}},[t("ll",{attrs:{"first-letter-upper-case":"",component:"Keep",token:"AUTHORIZE"}})],1):t("keep-button",{attrs:{color:"primary",block:""},on:{click:function(t){return e.testLogin()}}},[t("ll",{attrs:{"first-letter-upper-case":"",component:"Keep",token:"AUTHORIZE"}})],1)],1)],1)],1)}),[],!1,null,null,null).exports}}]);

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.