Concepts of modular tonton web application that share authentication

This commit is contained in:
Mateus Cezário Barreto 2025-11-21 00:17:42 -03:00
commit eb759a8454
7 changed files with 192 additions and 75 deletions

20
views/login.erb Normal file
View file

@ -0,0 +1,20 @@
<h2>Login</h2>
<% if @error %>
<p style="color: red; font-weight: bold;">
<%= @error %>
</p>
<% end %>
<form method="POST" action="/login">
<div>
<label for="username">Username:</label>
<input type="text" id="username" name="user[username]" required>
</div>
<br>
<div>
<label for="password">Password:</label>
<input type="password" id="password" name="user[password]" required>
</div>
<br>
<button type="submit">Log In</button>
</form>