implement redirect after login

This commit is contained in:
bence committed 2023-04-16 17:48:12 +02:00
1 parent 54a4ee4d60
commit 3e4c24bbc1
6 files changed
+55 -32

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
@section(main)
<h2>Login</h2>
<div class="box">
<form id="loginForm" action="/login" method="post" data-redirect-on-success="/">
<form id="loginForm" action="/login" method="post" data-redirect-on-success="<?= $redirectUrl ?>">
<input type="email" class="text big fullWidth" name="email" placeholder="Email address" required autofocus>
<input type="password" class="text big fullWidth marginTop" name="password" placeholder="Password" required minlength="6">
<p id="loginFormError" class="formError justify marginTop"></p>