Create model for users with email and password

This commit is contained in:
ricola 2025-04-06 17:04:31 -06:00
parent d6500e013d
commit 6682c8c300
6 changed files with 72 additions and 14 deletions

View file

@ -3,7 +3,14 @@
<p class="error"><%= @error %></p>
<% end %>
<form action="/login" method="POST">
<input name="email" placeholder="Email" />
<input name="password" type="password" placeholder="Password" />
<input type="submit" value="Log in" />
<p>
<label for="email">Email</label>
<input type="text" name="email">
</p>
<p>
<label for="password">Password</label>
<input type="password" name="password">
</p>
<button type="submit">Log in</button>
</form>
<a href="/signup">Create account</a>