[ First commit ]
This commit is contained in:
commit
25db02e2a1
5 changed files with 200 additions and 0 deletions
20
views/login.erb
Normal file
20
views/login.erb
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue