reviewed-auth 0.3 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reviewed-auth/version.rb +1 -1
- data/lib/reviewed-auth/views/login_form.erb +63 -58
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31ecfc2e5953ffc393af1efc55c23ab66fd72013
|
4
|
+
data.tar.gz: bb7b1cf53571c23cbe7cdd094a6a66ca3e242f2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b616519cf40c2591d7f83e16e93cf6b7ff336383416e1c74e5f48a07ce810f526ec5d49ce99dd038f8877aa1b198d6b9a0d6e9509c226691a126be4ac919f11
|
7
|
+
data.tar.gz: 4b94f48239f747a0cb28162b9187acbb3f185db0a1f3279e204dac8e7de187492997b1e3a91457f636f276bb8f3fc4e24014044dd167034417a44d7f84ba8f26
|
@@ -9,72 +9,77 @@
|
|
9
9
|
<meta name="author" content="">
|
10
10
|
|
11
11
|
<!-- Le styles -->
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
body {
|
16
|
-
padding-top: 40px;
|
17
|
-
padding-bottom: 40px;
|
18
|
-
background-color: #f5f5f5;
|
19
|
-
}
|
12
|
+
<script src="//code.jquery.com/jquery-1.8.3.min.js"></script>
|
13
|
+
<script src="//cdnjs.cloudflare.com/ajax/libs/materialize/0.96.1/js/materialize.min.js"></script>
|
14
|
+
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/materialize/0.96.1/css/materialize.min.css">
|
20
15
|
|
21
|
-
|
22
|
-
|
23
|
-
padding: 19px 29px 29px;
|
24
|
-
margin: 0 auto 20px;
|
25
|
-
background-color: #fff;
|
26
|
-
border: 1px solid #e5e5e5;
|
27
|
-
-webkit-border-radius: 5px;
|
28
|
-
-moz-border-radius: 5px;
|
29
|
-
border-radius: 5px;
|
30
|
-
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
|
31
|
-
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
|
32
|
-
box-shadow: 0 1px 2px rgba(0,0,0,.05);
|
33
|
-
}
|
34
|
-
.form-signin .form-signin-heading,
|
35
|
-
.form-signin .checkbox {
|
36
|
-
margin-bottom: 10px;
|
37
|
-
}
|
38
|
-
.form-signin input[type="text"],
|
39
|
-
.form-signin input[type="password"] {
|
40
|
-
font-size: 16px;
|
41
|
-
height: auto;
|
42
|
-
margin-bottom: 15px;
|
43
|
-
padding: 7px 9px;
|
44
|
-
}
|
16
|
+
<script>
|
17
|
+
function random(items) { return items[Math.floor(Math.random()*items.length)] }
|
45
18
|
|
46
|
-
|
19
|
+
Hello = ["Hello", "Bonjour", "Hola", "Hallo", "Ciao", "Ola", "Namaste", "Salaam", "Jambo", "Hihowareyou?"];
|
20
|
+
Categories =[
|
21
|
+
'camcorders','cameras','cars','coffee','dishwashers','espresso','freezers','grills','headphones',
|
22
|
+
'laptops','laundry','lenses','microwaves','ovens','printers','refrigerators','televisions',
|
23
|
+
'vacuums'
|
24
|
+
];
|
25
|
+
</script>
|
47
26
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
27
|
+
<style type="text/css">
|
28
|
+
/* card */
|
29
|
+
.card { margin-top: 50px; }
|
30
|
+
</style>
|
52
31
|
|
53
|
-
|
32
|
+
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
|
33
|
+
<!--[if lt IE 9]>
|
34
|
+
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
35
|
+
<![endif]-->
|
54
36
|
|
55
|
-
|
37
|
+
</head>
|
56
38
|
|
39
|
+
<body class="blue lighten-2">
|
57
40
|
<div class="container">
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
41
|
+
<div class="row">
|
42
|
+
<div class="col s12 m6 offset-m3">
|
43
|
+
<div class='card'>
|
44
|
+
<div class="card-image">
|
45
|
+
<img id="card-hero" src="#">
|
46
|
+
<script>$("#card-hero").attr("src", "//reviewed-auth.s3.amazonaws.com/images/" + random(Categories) + ".jpg")</script>
|
47
|
+
<span class="card-title">Reviewed.com</span>
|
48
|
+
</div>
|
49
|
+
<div class="card-content">
|
50
|
+
<h4 id="hello" class="form-signin-heading" style="text-align:center;">Hello</h4>
|
51
|
+
<script>$('#hello').text(random(Hello));</script>
|
52
|
+
<form class="form-signin" method="post">
|
53
|
+
<input type="hidden" name="return_url" value="<%= params[:return_url] || Reviewed::Auth.return_url %>" />
|
54
|
+
<input type="hidden" name="drop_cookie" value="<%= params[:drop_cookie] || Reviewed::Auth.drop_cookie %>" />
|
55
|
+
<div class="row">
|
56
|
+
<div class="input-field">
|
57
|
+
<label for="email" class="">Email</label>
|
58
|
+
<input id='email' type="email" class="validate" name="email"></input>
|
59
|
+
</div>
|
60
|
+
</div>
|
61
|
+
<div class="row">
|
62
|
+
<div class="input-field">
|
63
|
+
<label for="password" class="">Password</label>
|
64
|
+
<input id='password' type="password" type="password" class="validate" name="password"></input>
|
65
|
+
</div>
|
66
|
+
</div>
|
67
|
+
<div class="row">
|
68
|
+
<div class="login-button right-align">
|
69
|
+
<button class="btn btn-large blue lighten waves-effect" type="submit"><i class="mdi-action-lock-open right"></i>Sign in</button>
|
70
|
+
</div>
|
71
|
+
</div>
|
72
|
+
</form>
|
73
|
+
</div>
|
74
|
+
<div class="card-action">
|
75
|
+
<a href="http://www.reviewed.com">Visit Reviewed.com</a>
|
76
|
+
</div>
|
77
|
+
</div>
|
63
78
|
</div>
|
64
|
-
|
65
|
-
|
66
|
-
<form class="form-signin" method="post">
|
67
|
-
<h1>Reviewed.com</h1>
|
68
|
-
<h2 class="form-signin-heading">Please sign in</h2>
|
69
|
-
<input type="hidden" name="return_url" value="<%= params[:return_url] || Reviewed::Auth.return_url %>" />
|
70
|
-
<input type="hidden" name="drop_cookie" value="<%= params[:drop_cookie] || Reviewed::Auth.drop_cookie %>" />
|
71
|
-
<input type="text" class="input-block-level" placeholder="Email address" name="email">
|
72
|
-
<input type="password" class="input-block-level" placeholder="Password" name="password">
|
73
|
-
<button class="btn btn-large btn-primary" type="submit">Sign in</button>
|
74
|
-
</form>
|
75
|
-
|
79
|
+
</div>
|
76
80
|
</div> <!-- /container -->
|
77
|
-
|
78
|
-
|
81
|
+
<% if @error %>
|
82
|
+
<script> Materialize.toast('<%= @error %>', 4000) // 4000 is the duration of the toast</script>
|
83
|
+
<% end %>
|
79
84
|
</body>
|
80
85
|
</html>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reviewed-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Bates
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|
@@ -105,8 +105,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
version: '0'
|
106
106
|
requirements: []
|
107
107
|
rubyforge_project:
|
108
|
-
rubygems_version: 2.
|
108
|
+
rubygems_version: 2.4.5
|
109
109
|
signing_key:
|
110
110
|
specification_version: 4
|
111
111
|
summary: Central Authentication Service for Reviewed.com
|
112
112
|
test_files: []
|
113
|
+
has_rdoc:
|