Ignore:
Timestamp:
10/31/22 23:42:15 (2 years ago)
Author:
Gjoko <goko_kostadinov@…>
Branches:
master
Children:
044bd76
Parents:
204464d
Message:

Fix security

Location:
src/main/resources/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/main/resources/templates/homepage.html

    r204464d r763289e  
    33<head>
    44    <meta charset="UTF-8">
    5     <title>Title</title>
     5    <title>Homepage</title>
    66</head>
    77<body>
  • src/main/resources/templates/login.html

    r204464d r763289e  
    4040                <div class="card">
    4141                    <div class="card-body py-5 px-md-5">
    42                         <form>
     42                        <form action="#" th:action="@{/login}" th:object="${stakeholder}" method="post">
    4343                            <!-- Email input -->
    4444                            <div class="form-outline mb-4">
    45                                 <input type="email" id="email" class="form-control"/>
    46                                 <label class="form-label" for="email">Email address</label>
     45                                <input type="text" id="username" class="form-control" required th:field="*{username}" />
     46                                <label class="form-label" for="username">Username</label>
    4747                            </div>
    4848
    4949                            <!-- Password input -->
    5050                            <div class="form-outline mb-4">
    51                                 <input type="password" id="password" class="form-control"/>
     51                                <input type="password" id="password" class="form-control" th:field="*{password}" />
    5252                                <label class="form-label" for="password">Password</label>
    5353                            </div>
Note: See TracChangeset for help on using the changeset viewer.