This repository has been archived by the owner on Apr 5, 2022. It is now read-only.
/
signin.html
71 lines (64 loc) · 2.78 KB
/
signin.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:social="http://spring.io/springsocial"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorator="layout">
<head>
<title>Spring Social Showcase</title>
<link rel="stylesheet" th:href="@{/page.css}" type="text/css" media="screen"></link>
<link rel="stylesheet" th:href="@{/form.css}" type="text/css" media="screen"></link>
<link rel="stylesheet" th:href="@{/messages/messages.css}" type="text/css" media="screen"></link>
</head>
<body>
<div id="header">
<h1><a th:href="@{/}">Spring Social Showcase</a></h1>
</div>
<div id="leftNav">
Left nav menu
</div>
<div id="content" layout:fragment="content">
<form id="signin" th:action="@{/signin/authenticate}" method="post">
<input type="hidden" name="_csrf" th:value="${_csrf.token}"></input>
<div class="formInfo">
<div class="error" th:if="${param.error eq 'bad_credentials'}">
Your sign in information was incorrect.
Please try again or <a th:href="@{/signup}">sign up</a>.
</div>
<div class="error" th:if="${param.error eq 'multiple_users'}">
Multiple local accounts are connected to the provider account.
Try again with a different provider or with your username and password.
</div>
</div>
<fieldset>
<label for="login">Username</label>
<input id="login" name="username" type="text" size="25"></input>
<label for="password">Password</label>
<input id="password" name="password" type="password" size="25"></input>
</fieldset>
<button type="submit">Sign In</button>
<p>Some test user/password pairs you may use are:</p>
<ul>
<li>habuma/tacos</li>
<li>rclarkson/atlanta</li>
</ul>
<p>Or you can <a th:href="@{/signup}">signup</a> with a new account.</p>
</form>
<!-- TWITTER SIGNIN -->
<form id="tw_signin" th:action="@{/signin/twitter}" method="POST">
<input type="hidden" name="_csrf" th:value="${_csrf.token}"></input>
<button type="submit"><img th:src="@{/social/twitter/sign-in-with-twitter-d.png}"></img></button>
</form>
<!-- FACEBOOK SIGNIN -->
<form name="fb_signin" id="fb_signin" th:action="@{/signin/facebook}" method="POST">
<input type="hidden" name="_csrf" th:value="${_csrf.token}"></input>
<input type="hidden" name="scope" value="read_stream,user_posts,user_photos"></input>
<button type="submit"><img th:src="@{/social/facebook/sign-in-with-facebook.png}"></img></button>
</form>
<!-- LINKEDIN SIGNIN -->
<form name="li_signin" id="li_signin" th:action="@{/signin/linkedin}" method="POST">
<input type="hidden" name="_csrf" th:value="${_csrf.token}"></input>
<button type="submit">Sign In with LinkedIn</button>
</form>
</div>
</body>
</html>