FIX! login redirecting register...

This commit is contained in:
Akif9748 2022-08-26 20:39:25 +03:00
parent 03cd620d19
commit c94abce4f9

View file

@ -11,7 +11,7 @@
<h1 class="title">Login</h1> <h1 class="title">Login</h1>
<form action="/login?redirect=<%= redirect %>" method="post"> <form action="/login?redirect=<%= redirect !== "/register" ? redirect : "/" %>" method="post">
<input type="text" name="username" placeholder="Username" class="input" required> <input type="text" name="username" placeholder="Username" class="input" required>
<input type="password" name="password" placeholder="Password" class="input" required> <input type="password" name="password" placeholder="Password" class="input" required>