M5 A1 fertig

This commit is contained in:
S170H
2023-12-19 16:13:37 +01:00
committed by Robert
parent 5ee2f923fe
commit 05258cfb22
6 changed files with 34 additions and 13 deletions

View File

@@ -17,7 +17,7 @@
@elseif ($anmeldung == 1)
{{ session_start() }}
Anmeldung erlaubt!
@else Anmeldung nicht erlaubt!
@else Es ist ein Fehler aufgetretten!
@endif
@endsection

View File

@@ -0,0 +1,23 @@
@extends("m5_a1.layout_anmeldung")
@section("main")
<form action="/anmeldung_verifizieren" method="post">
<label for="email">E-Mail</label>
<input id="email" name="email" type="email" placeholder="email" required maxlength="100">
<label for="passwort">Passwort</label>
<input id="passwort" name="passwort" type="password" placeholder="passwort" required maxlength="200">
<button type="submit" >Anmelden</button>
</form>
@if(!isset($anmeldung)) Bitte anmelden!
@elseif ($anmeldung == 1)
{{ session_start() }}
Anmeldung erlaubt!
@else Es ist ein Fehler aufgetretten!
@endif
@endsection

View File

@@ -3,8 +3,8 @@
@section("main")
@if($anmeldung == 1)
<meta http-equiv="refresh" content="/main"/>
<form id="form_ok" action="/main"></form>
<meta http-equiv="refresh" content="/"/>
<form id="form_ok" action="/"></form>
<script type="text/javascript">
@@ -22,7 +22,7 @@
</script>
@else
<form method="post" id="auto_form" action="/anmeldung_nichtkorrekt">
<form method="post" id="auto_form" action="/anmeldung_fehler">
<input type="hidden" name="email" value={{ $email}}>
<input type="hidden" name="passwort" value={{$passwort}}>
<input type="hidden" name="anmeldung" value={{$anmeldung }}>