-
Notifications
You must be signed in to change notification settings - Fork 11
/
static.go
65 lines (58 loc) · 2.03 KB
/
static.go
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
package main
var LOGINPAGE = `{{define "login"}}
<!DOCTYPE html>
<html>
<head>
<title>Open Science Framework | Sign In</title>
</head>
<body>
<div id="header">
<span><h3>Open Science Framework | fakeCAS</h3></span>
<br>
</div>
{{if .NotRegistered}}
<div id="message">
<p>This login email has been registered but not confirmed. Please check your email (and spam folder). <a href={{.OSFResendConfirmation}}>Click here</a> to resend your confirmation email.</p>
</div>
{{end}}
{{if .NotAuthorized}}
<div id="message">
<p>The service you attempted to authenticate to is not authorized to use CAS.</p>
</div>
{{end}}
{{if .NotValid}}
<p>Invalid request. User does not exist or invalid/expired validation key.</p>
{{end}}
{{if .LoginForm}}
<div id="forms">
<form id="login" action="{{.CASLogin}}" method="post">
<section>
<span>Email:</span>
<input id="username" name="username" type="text" value="" size="" />
<input id="submit" type="submit" value="Sign In" />
{{if .NotExist}}
<span>User does not exist.</span>
{{end}}
</section>
<section hidden>
<br>
<span>Password:</span>
<input id="password", name="password", type="password", value="" />
<input id="persistence" name="persistence", type="checkbox" value="true" checked />
<label id="for-persistence">Stay Signed In</label>
</section>
</form>
</div>
{{end}}
<br>
<div id="links">
<section>
<a id="forgot-password" href={{.OSFForgotPassword}}>Forgot Your Password?</a><br>
<a id="institution-login" href={{.OSFInstitutionLogin}}>Login Through Your Institution</a><br>
<a id="back-to-osf" href={{.OSFDomain}}>Back to OSF</a><br>
<a id="create-account" href={{.OSFCreateAccount}}>Create Account</a>
</section>
</div>
</body>
</html>
{{end}}`