A self hosted chat application with end-to-end encrypted messaging.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

51 lines
1.7 KiB

<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<div th:replace="fragments/head :: headFragment">
<title id="pageTitle">Login</title>
</div>
</head>
<body>
<div id="body-container" class="shadow-sm p-3 mb-5 bg-white rounded">
<!-- <div>Login Page</div> -->
<form action="#" th:action="@{/login}" method="POST" id="loginForm">
<fieldset>
<!-- <form action="#" th:action="@{/greeting}" th:object="${greeting}" method="post">
<p>Id: <input type="text" th:field="*{id}" /></p>
<p>Message: <input type="text" th:field="*{content}" /></p>
<p><input type="submit" value="Submit" /> <input type="reset" value="Reset" /></p>
</form> -->
<!-- <form action="#" th:action="@{/perform_login}" th:object=${user} method="POST">
<label>Enter user name: </label>
<input th:field="*{userName}" type="text" name="username" id="username">
<br> <br> <label>Enter password: </label>
<input th:field="*{password}" type="password" name="password" id="username"> <br> <br>
<input type="submit" value="Submit">
</form>
-->
<legend>Please Login</legend>
<div th:if="${param.error}" class="alert alert-error">
Invalid username or password.
</div>
<div th:if="${param.logout}" class="alert alert-success">
You have been logged out.
</div>
<label for="username">Enter user name: </label>
<input type="text" name="username" id="username">
<br> <br>
<label for="password">Enter password: </label>
<input type="password" name="password" id="password">
<br> <br>
<button type="submit" class="btn btn-primary">Login</button>
</fieldset>
</form>
</div>
<script src="../js/loginPage.js" type="text/javascript"></script>
</body>
</html>