-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
71 lines (64 loc) · 1.85 KB
/
index.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 lang="en" class="h-100" ng-app="auth_module" ng-cloak>
<head>
<meta name="loginForm" content="width=device-width, initial-scale=1">
<style>
body {
font-family: Arial, Helvetica, sans-serif;
}
form {
border: 8px solid rgb(22, 98, 141);
text-align: center;
}
input[type=text],
input[type=password] {
width: 50%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
box-sizing: border-box;
}
button {
padding: 14px 20px;
margin: 8px 0;
cursor: pointer;
width: 30%;
}
.container {
padding: 16px;
}
h2 {
font-size: 1rem;
padding-left: 60px;
text-align: center;
color: rgb(22, 98, 141);
}
</style>
<meta charset="UTF-8">
<meta name="loginForm" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>User Authentication</title>
</head>
<body ng-controller="loginController">
<form name="loginForm" ng-if="!loading">
<div ng-if="!loading && authResponse">
<h2>
{{authResponse.msg}}
</h2>
</div>
<pre>{{userData}}</pre>
<label for="userName"><b>Username</b></label>
<input ng-model="userData.userName" type="text" id="userName" name="userName" placeholder="User Name" required />
<br>
<label for="userPassword"><b>Password</b></label>
<input ng-model="userData.userPassword" type="password" id="userPassword" name="userPassword"
placeholder="User Password" required /> <br>
<button ng-click="doLogin(userData)" ng-disabled="loginForm.$invalid">Login</button>
</form>
</body>
<!-- SCRIPTS -->
<script src="./node_modules/angular/angular.min.js"></script>
<script src="./auth_module.js"></script>
<script src="./login-controller.js"></script>
</html>