26 lines
706 B
PHP
26 lines
706 B
PHP
<?php
|
|
$errors = flash('errors');
|
|
if ($errors !== false) {
|
|
foreach ($errors as $error) {
|
|
foreach ($error as $message) {
|
|
echo "<p>$message</p>";
|
|
}
|
|
}
|
|
}
|
|
?>
|
|
|
|
<div class="container-960">
|
|
<h1 class="my-4">Register</h1>
|
|
<form action="/auth/register" method="post">
|
|
<?= csrf_field() ?>
|
|
|
|
<input type="text" name="username" placeholder="Username" class="form control mb-1">
|
|
<input type="text" name="email" placeholder="Email" class="form control mb-1">
|
|
<input type="password" name="password" placeholder="Password" class="form control mb-4">
|
|
|
|
<button type="submit" class="ui button primary">Register</button>
|
|
<a href="/auth/login" class="ui button secondary">Login</a>
|
|
</form>
|
|
</div>
|
|
|