This repository has been archived by the owner on Apr 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 168
/
index.ejs
67 lines (67 loc) · 2.08 KB
/
index.ejs
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>LoopBack example access control</title>
</head>
<body>
<h1>Startkicker</h1>
<table border=1 cellpadding=5>
<tr>
<th>Login</th>
<th>User name</th>
<th>User type</th>
<th>Role ($ = built-in role)</th>
</tr>
<tr>
<td><a href="/projects">Guest</a></td>
<td></td>
<td>Guest</td>
<td>$unauthenticated, $everyone</td>
</tr>
<tr>
<td>
<form action="/projects" method="post">
<input type="text" name="email" value="[email protected]" placeholder="Email"><br>
<input type="password" name="password" value="opensesame" placeholder="Password"><br>
<input type="submit" value="Login">
</form>
</td>
<td>John</td>
<td>Owner (of project 1)</td>
<td>$owner, teamMember, $authenticated, $everyone</td>
</tr>
<tr>
<td>
<form action="/projects" method="post">
<input type="text" name="email" value="[email protected]" placeholder="Email"><br>
<input type="password" name="password" value="opensesame" placeholder="Password"><br>
<input type="submit" value="Login">
</form>
</td>
<td>Jane</td>
<td>Team member (of project 1)</td>
<td>teamMember, $authenticated, $everyone</td>
</tr>
<tr>
<td>
<form action="/projects" method="post">
<input type="text" name="email" value="[email protected]" placeholder="Email"><br>
<input type="password" name="password" value="opensesame" placeholder="Password"><br>
<input type="submit" value="Login">
</form>
</td>
<td>Bob</td>
<td>Administrator</td>
<td>admin, $authenticated, $everyone</td>
</tr>
<% if (loginFailed) { %>
<tr>
<td colspan=6>
<span style="color:red">Login failed, please try again</span>
</td>
</tr>
<% } %>
</table>
</body>
</html>