This commit is contained in:
2025-06-23 11:13:48 +02:00
parent ba55304182
commit 3d4e1532c7
4 changed files with 93 additions and 7 deletions

View File

@@ -17,7 +17,7 @@
<?php echo $errmsg;?>
<?php endif; ?>
</label>
<p style="margin-top:15px; text-align:center;">Don't have an account? <a href="index.php?page=register">Register here</a></p>
<p style="margin-top:15px; text-align:center;">Don't have an account? <a href="?controller=User&do=showUserRegisterForm">Register here</a></p>
</div>
<input type="hidden" name="controller" value="User">
<input type="hidden" name="do" value="loginUser">

View File

@@ -0,0 +1,28 @@
<?php include dirname(__DIR__).'/header.phtml'; ?>
<div class="form-container">
<h2>Register</h2>
<form id="register-form" method="POST">
<input type="hidden" name="action" value="register">
<div class="form-group">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
</div>
<div class="form-group">
<label for="password">Password:</label>
<input type="password" id="password" name="password" required>
<div class="password-strength-meter"><div id="strength-bar"></div></div>
<div id="password-strength"><ul></ul></div>
</div>
<div class="form-group">
<label for="confirm_password">Confirm Password:</label>
<input type="password" id="confirm_password" name="confirm_password" required>
</div>
<div class="form-actions">
<button type="submit" >Register</button>
<p style="margin-top:15px; text-align:center;">Already have an account? <a href="?controller=User&do=showUserLoginForm">Login here</a></p>
</div>
<input type="hidden" name="controller" value="User">
<input type="hidden" name="do" value="registerUser">
</form>
</div>
<?php include dirname(__DIR__).'/footer.phtml'; ?>