Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
levkk committed Dec 6, 2024
1 parent 3fa4dec commit f686dcc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/users/templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<%% "templates/head.html" %>
</head>
<body>
<div class="container pt-5">
<div class="container pt-5 col-lg-6 col-12">
<h1 class="mb-4">Login</h1>
<form method="post" action="/login">
<%= csrf_token() %>
Expand Down Expand Up @@ -33,7 +33,7 @@ <h1 class="mb-4">Login</h1>

<div class="d-flex justify-content-end">
<button type="submit" class="btn btn-primary">
Signup
Login
</button>
</div>
</form>
Expand Down
9 changes: 7 additions & 2 deletions examples/users/templates/signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<%% "templates/head.html" %>
</head>
<body>
<div class="container pt-5">
<div class="container pt-5 col-lg-6 col-12">
<h1 class="mb-4">Create account</h1>
<form method="post" action="/signup">
<% if error_user_exists %>
Expand All @@ -23,9 +23,14 @@ <h1 class="mb-4">Create account</h1>
<input class="form-control" type="password" placeholder="A secure password" required autocomplete="off" name="password">
</div>

<div class="mb-3">
<label class="form-label">Password again</label>
<input class="form-control" type="password" placeholder="A secure password" required autocomplete="off" name="password2">
</div>

<div class="d-flex justify-content-end">
<button type="submit" class="btn btn-primary">
Signup
Create account
</button>
</div>
</form>
Expand Down
2 changes: 1 addition & 1 deletion rwf/src/model/user.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use super::{Model, Pool, Row, ToValue, Value};
use super::{Model, Pool, ToValue, Value};
use async_trait::async_trait;
use tokio::task::spawn_blocking;

Expand Down

0 comments on commit f686dcc

Please sign in to comment.