forked from stormpath/idsite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
352 lines (326 loc) · 16.2 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Login</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link href="//fonts.googleapis.com/css?family=Open+Sans:300italic,300,400italic,400,600italic,600,700italic,700,800italic,800" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<link rel="stylesheet" href="styles/main.css"/>
<script src="scripts/vendor.js"></script>
</head>
<body ng-app="stormpathIdpApp">
<script type="text/ng-template" id="views/login.html">
<div class="view login-view" ng-show="ready">
<div class="box row">
<div class="email-password-area col-xs-12" ng-class="[hasSocial ? 'small col-sm-8' : 'large col-sm-12']">
<div class="header">
<span>Log In or </span>
<a href="#register">Create an Account</a>
</div>
<div class="alert alert-danger bad-login" ng-show="errors.badLogin">
Invalid username or password.
</div>
<div class="alert alert-danger not-found" ng-show="errors.notFound">
<span>Account does not exist. Do you need to </span>
<a href="#/register">create an account</a>
<span>?</span>
</div>
<div class="alert alert-danger" ng-show="errors.unknown">An unkown error has occurred</div>
<div class="alert alert-danger" ng-show="errors.userMessage">
<strong>Sorry, an error occured. Please reload the page and try again.</strong>
<br/>
<br/>
<p>{{errors.userMessage}}</p>
</div>
<form class="login-form form-horizontal" role="form" ng-submit="submit()">
<div class="form-group group-email">
<label ng-class="[hasSocial ? 'col-sm-12' : 'col-sm-4']">Email</label>
<div ng-class="[hasSocial ? 'col-sm-12' : 'col-sm-8']">
<input class="form-control" type="text" name="username" ng-model="username" placeholder="Email"/>
</div>
</div>
<div class="form-group group-password">
<label ng-class="[hasSocial ? 'col-sm-12' : 'col-sm-4']">Password</label>
<div ng-class="[hasSocial ? 'col-sm-12' : 'col-sm-8']">
<input class="form-control" type="password" name="password" ng-model="password" placeholder="Password"/>
</div>
</div>
<div class="form-group group-remember-me">
<div class="col-sm-8" ng-class="[hasSocial ? '' : 'col-sm-offset-4']">
<input type="checkbox" id="remember">
<label for="remember">Remember me</label>
</div>
</div>
<div>
<button class="login btn btn-login btn-sp-green" type="submit">Log In</button>
</div>
</form>
</div>
<div class="social-area col-xs-12 col-sm-4" ng-show="hasSocial">
<div class="header"> </div>
<label>Easy 1-click login:</label>
<button ng-repeat="p in providers" class="btn btn-social btn-{{p.providerId}}" ng-click="providerLogin(p.providerId)">{{p.providerId}}</button>
</div>
</div>
<a class="forgot" href="#forgot">Forgot Password?</a>
</div>
</script>
<script type="text/ng-template" id="views/registration.html">
<div class="view registration-view">
<div class="box row">
<div class="col-sm-12">
<div class="header">
<span>Create an Account</span>
</div>
<form class="registration-form form-horizontal sp-form" role="form" ng-controller="RegistrationFormCtrl" ng-submit="submit()">
<div class="alert alert-danger" ng-show="unknownError">
<strong>Sorry, an error occured. Please reload the page and try again.</strong>
<br/>
<br/>
<p>{{unknownError}}</p>
</div>
<div class="form-group group-first-name" form-group>
<label class="col-sm-4">First Name</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="givenName" form-control name-validation validate-on-blur/>
<small class="help-block" ng-show="validationError">First name is required</small>
</div>
</div>
<div class="form-group group-last-name" form-group>
<label class="col-sm-4">Last Name</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="surname" form-control name-validation validate-on-blur/>
<small class="help-block" ng-show="validationError">Last name is required</small>
</div>
</div>
<div class="form-group group-email" form-group>
<label class="col-sm-4">Email</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="email" form-control email-validation validate-on-blur/>
<small class="help-block duplicate-user" ng-show="errors.duplicateUser">Email address is already registered</small>
<small class="help-block validation-error" ng-show="validationError">Invalid email address</small>
</div>
</div>
<div class="form-group group-password" form-group>
<label class="col-sm-4">Password</label>
<div class="col-sm-8">
<input type="password" class="form-control" name="password" form-control password-policy-validation validate-on-blur/>
<div ng-include="'views/password-error-messages.html'"></div>
</div>
</div>
<div class="form-group group-confirm-password" form-group>
<label class="col-sm-4">Confirm Password</label>
<div class="col-sm-8">
<input type="password" class="form-control" name="passwordConfirm" form-control password-match-validation validate-on-blur/>
<small class="help-block" ng-show="validationError">Password does not match</small>
</div>
</div>
<button class="btn btn-register btn-sp-green" type="submit">Create Account</button>
</form>
</div>
</div>
<a class="to-login" href="#">Back to Log In</a>
</div>
</script>
<script type="text/ng-template" id="views/forgot.html">
<div class="view forgot-view">
<div class="box row">
<div class="col-sm-12">
<div class="header">
<span ng-show="!sent && !retry">Password Reset</span>
<span ng-show="retry">Reset link has expired</span>
<span ng-show="sent">Check your email</span>
</div>
<div class="wd-sent" ng-show="sent">
<p>
<span>We've sent a password reset link to </span>
<strong>{{fields.email.value}}</span>
</p>
<p> </p>
</div>
<form class="forgot-form form-horizontal sp-form" role="form" ng-submit="submit()" ng-show='!sent'>
<div class="form-group group-email" ng-class="{'has-error':notFound}" form-group>
<label class="col-sm-6" ng-hide="retry">Send password reset instructions to:</label>
<label class="col-sm-6" ng-show="retry">Send new password reset email to:</label>
<div class="col-sm-6">
<input type="text" class="form-control" name="email" form-control email-validation validate-on-blur/>
<small class="help-block wd-invalid-email" ng-show="validationError">Invalid email address</small>
<small class="help-block wd-not-found" ng-show="notFound"><span>Account does not exist.</span></small>
</div>
</div>
<div class="alert alert-danger" ng-show="unknownError">
<strong>Sorry, an error occured. Please reload the page and try again.</strong>
<br/>
<br/>
<p>{{unknownError}}</p>
</div>
<button class="btn btn-forgot btn-sp-green" type="submit">Reset Password</button>
</form>
</div>
</div>
<a ng-show="!sent" class="to-login" href="#" wd-back-to-login>Back to Log In</a>
</div>
</script>
<script type="text/ng-template" id="views/reset.html">
<div class="view reset-view" ng-show="status!=='loading'">
<div class="box row">
<div class="col-sm-12">
<div class="header">
<span ng-show="status=='verified'">Password Reset</span>
<span ng-show="status=='failed'">Sorry! Something went wrong.</span>
<span ng-show="status=='success'">Your have successfully changed your password</span>
</div>
<div ng-show="status=='failed'">
<p>
<span>You will need to make a new password reset request.</span>
<a href="#/forgot">Click here to try again</a>
</p>
<p> </p>
</div>
<div wd-success ng-show="status==='success'">
<p>
<span>You may now </span>
<a href="#/">log in</a>
</p>
<p> </p>
</div>
<div ng-show="error" class="alert alert-danger">
<p><strong>The error was:</strong></p>
<p>{{error}}</p>
</div>
<form class="reset-form form-horizontal sp-form" role="form" ng-show="status=='verified'" ng-submit="submit()">
<div class="form-group group-password" form-group>
<label class="col-sm-4">New Password</label>
<div class="col-sm-8">
<input type="password" class="form-control" name="password" form-control password-policy-validation validate-on-blur/>
<div ng-include="'views/password-error-messages.html'"></div>
</div>
</div>
<div class="form-group group-confirm-password" form-group>
<label class="col-sm-4">Confirm Password</label>
<div class="col-sm-8">
<input type="password" class="form-control" name="passwordConfirm" form-control password-match-validation validate-on-blur/>
<small wd-pw-mismatch class="help-block" ng-show="validationError">Password does not match</small>
</div>
</div>
<div class="alert alert-danger" ng-show="unknownError">
<strong>Sorry, an error occured. Please reload the page and try again.</strong>
<br/>
<br/>
<p>{{unknownError}}</p>
</div>
<button class="btn btn-reset btn-sp-green" type="submit">Submit</button>
</form>
</div>
</div>
</div>
</script>
<script type="text/ng-template" id="views/verify.html">
<div class="view verify-view" ng-show="status!=='loading'">
<div class="box row">
<div class="col-sm-12">
<div class="header">
<span ng-show="status=='verified'">Your account has been successfully created</span>
<span ng-show="status=='failed'">Sorry, there was an error while verifying your account</span>
</div>
<div class="verified" ng-show="status=='verified'">
<p>
<span>Success! Your account is ready, please </span>
<a href="#/">log in</a>
</p>
</div>
<div ng-show="error" class="alert alert-danger">
<strong>{{error}}</strong>
</div>
<div class="verification-failed" ng-show="status=='failed'">
<p>
<span>Please try again by clicking on the verification link that was sent to your email address.</span>
</p>
<p>
<span>If you continue to have problems you may need to</span>
<a href="#/register">register</a>
<span>again.</span>
</p>
</div>
</div>
</div>
</div>
</script>
<script type="text/ng-template" id="views/unverified.html">
<div class="view unverified-view">
<div class="box row">
<div class="col-sm-12">
<div class="header">
<span>Check Your Email</span>
</div>
<p>Your account has been successfully created! Check your email and activate your account.</p>
</div>
</div>
</div>
</script>
<script type="text/ng-template" id="views/error.html">
<div class="view error-view">
<div class="row">
<div class="col-sm-12">
<div class="alert alert-warning">
<p>Sorry, there is a problem. The error is:</p>
<br/>
<p class="alert alert-danger" ng-repeat="e in errors">
<span>{{e}}</span>
</p>
<br/>
<p>Please use your browser's back button to return to the previous page, then try again.</p>
</div>
</div>
</div>
</div>
</script>
<script type="text/ng-template" id="views/password-error-messages.html">
<small class="help-block" ng-show="errors.minLength" wd-minLength>Password is too short</small>
<small class="help-block" ng-show="errors.maxLength" wd-maxLength>Password is too long</small>
<small class="help-block" ng-show="errors.requireNumeric" wd-requireNumeric>Password requires a number</small>
<small class="help-block" ng-show="errors.requireDiacritical" wd-requireDiacritical>Password requires a diacritical character</small>
<small class="help-block" ng-show="errors.requireUpperCase" wd-requireUpperCase>Password requires a uppercase letter</small>
<small class="help-block" ng-show="errors.requireLowerCase" wd-requireLowerCase>Password requires a lowercase letter</small>
</script>
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<div class="container" ng-controller="ErrorCtrl" ng-cloak>
<div class="logo-container">
<img ng-show="logoUrl" class="logo img-responsive" ng-src="{{logoUrl}}"/>
</div>
<div ng-show="inError" ng-include="'views/error.html'"></div>
<div ng-hide="inError" ng-view="">
<!-- this will be replaced a the view, as determined by the route config in app.js -->
</div>
</div>
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXX-X');
ga('send', 'pageview');
</script>
<!--[if lt IE 9]>
<script src="scripts/iecompat.js"></script>
<![endif]-->
<script src="scripts/app.js"></script>
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/client:plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
</body>
</html>