20 lines
No EOL
474 B
Text
20 lines
No EOL
474 B
Text
<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> |