Skip to content

Commit fc3b378

Browse files
updated register page
1 parent 7d7a34f commit fc3b378

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/routers/ui_routes.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
def home(request: Request, response_model=HTMLResponse):
1919
return TEMPLATES.TemplateResponse("home/index.html", {"request" : request})
2020

21-
2221
@router.get("/login")
2322
def login(request: Request, response_model=HTMLResponse):
2423
return TEMPLATES.TemplateResponse("accounts/login.html", {"request" : request})
24+
25+
@router.get("/register")
26+
def register(request: Request, response_model=HTMLResponse):
27+
return TEMPLATES.TemplateResponse("accounts/register.html", {"request" : request})

src/templates/accounts/register.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,21 +65,20 @@ <h5>Sign UP</h5>
6565

6666
{% else %}
6767

68-
<form role="form text-left" method="post" action="">
68+
<form role="form text-left" method="post" action="/api/users">
6969

70-
{{ form.hidden_tag() }}
7170

7271
<label>Username</label>
7372
<div class="mb-3">
74-
{{ form.username(placeholder="Username", class="form-control") }}
73+
<input type="text" name="username" id="username" placeholder="username" class="form-control">
7574
</div>
7675
<label>Email</label>
7776
<div class="mb-3">
78-
{{ form.email(placeholder="Email", class="input form-control", type="email") }}
77+
<input type="email" name="email" id="email" placeholder="Email" class="form-control">
7978
</div>
8079
<label>Password</label>
8180
<div class="mb-3">
82-
{{ form.password(placeholder="Password", class="form-control", type="password") }}
81+
<input type="type" name="password" id="password" class="form-control">
8382
</div>
8483

8584
<div class="text-center">

0 commit comments

Comments
 (0)