PageSourceSearch

https://schulbenachrichtigung.de/build/assets/TwoFactorChallenge.d205df10.js

js schulbenachrichtigung.de collected 2026-10-06 16:41:19 UTC 3,225 bytes, 1 lines download raw bytes

1import{r as l,u as S,o,d as s,b as r,g as t,w as _,F as a,H as A,a as c,f as d,e as B,s as h,n as I,D as z}from"./app.b43c1b45.js";import{_ as E}from"./AppLayout.736b591a.js";import{A as M}from"./AuthenticationCard.065a5d8e.js";import{_ as v}from"./InputError.cb5ee524.js";import{_ as b}from"./InputLabel.92e4e303.js";import{_ as N}from"./PrimaryButton.0e778cf8.js";import{_ as k}from"./TextInput.95a87be2.js";import"./ResponsiveNavLink.7fc13258.js";import"./_plugin-vue_export-helper.cdc0426e.js";const F={class:"mb-4 text-sm text-gray-600"},$={key:0},L={key:1},T=["onSubmit"],D={key:0},H={key:1},R={class:"flex items-center justify-between mt-4"},U=["onClick"],W={__name:"TwoFactorChallenge",props:{tfa_method:String,ulid:String},setup(C){const p=C,n=l(!1),u=l(p.tfa_method),e=S({code:"",recovery_code:""}),y=l(null),g=l(null),x=async()=>{n.value^=!0,await z(),n.value?(y.value.focus(),e.code=""):(g.value.focus(),e.recovery_code="")},w=()=>{axios.post(route("user.send2faCodeByMail"),{ulid:p.ulid}).then(m=>{m.status===200&&m.data.success&&(u.value="mail")})},V=()=>{e.post(route("two-factor.login"))};return(m,i)=>(o(),s(a,null,[r(t(A),{title:"Zwei-Faktor-Authentifizierung"}),r(E,null,{default:_(()=>[r(M,null,{default:_(()=>[c("div",F,[n.value?(o(),s(a,{key:1},[d(" Bitte best\xE4tigen Sie Ihren Login durch Eingabe eines Ihrer Notfall-Codes ")],64)):(o(),s(a,{key:0},[u.value==="mail"?(o(),s("span",$,"Bitte best\xE4tigen Sie Ihren Login durch Eingabe des Authentifizierungs-Codes, den Sie per E-Mail erhalten haben.")):(o(),s("span",L,"Bitte best\xE4tigen Sie Ihren Login durch Eingabe des Authentifizierungs-Codes, den Sie von der Authenticator App erhalten haben."))],64))]),c("form",{onSubmit:h(V,["prevent"])},[n.value?(o(),s("div",H,[r(b,{for:"recovery_code",value:"Recovery Code"}),r(k,{id:"recovery_code",ref_key:"recoveryCodeInput",ref:y,modelValue:t(e).recovery_code,"onUpdate:modelValue":i[1]||(i[1]=f=>t(e).recovery_code=f),type:"text",class:"mt-1 block w-full",autocomplete:"one-time-code"},null,8,["modelValue"]),r(v,{class:"mt-2",message:(t(e).errors.code||t(e).errors.recovery_code)&&"Der eingebene Code ist nicht korrekt"},null,8,["message"])])):(o(),s("div",D,[r(b,{for:"code",value:"Code"}),r(k,{id:"code",ref_key:"codeInput",ref:g,modelValue:t(e).code,"onUpdate:modelValue":i[0]||(i[0]=f=>t(e).code=f),type:"text",inputmode:"numeric",class:"mt-1 block w-full",autofocus:"",autocomplete:"one-time-code"},null,8,["modelValue"]),r(v,{class:"mt-2",message:(t(e).errors.code||t(e).errors.recovery_code)&&"Der eingebene Code ist nicht korrekt"},null,8,["message"])])),c("div",R,[u.value!=="mail"?(o(),s("button",{key:0,type:"button",class:"text-sm text-gray-600 hover:text-gray-900 underline cursor-pointer",onClick:w}," Code per E-Mail ")):B("",!0),c("button",{type:"button",class:"text-sm text-gray-600 hover:text-gray-900 underline cursor-pointer",onClick:h(x,["prevent"])},[n.value?(o(),s(a,{key:1},[d(" Authentifizierungs-Code benutzen ")],64)):(o(),s(a,{key:0},[d(" Notfall-Code benutzen ")],64))],8,U),r(N,{class:I(["ml-4",{"opacity-25":t(e).processing}]),disabled:t(e).processing},{default:_(()=>[d(" Login ")]),_:1},8,["class","disabled"])])],40,T)]),_:1})]),_:1})],64))}};export{W 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.