gennaro 0.3.6.2 → 0.3.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gennaro/version.rb +1 -1
- data/templates/authentication/views/user/change_level.erb +11 -9
- data/templates/authentication/views/user/login.erb +10 -6
- data/templates/authentication/views/user/logout.erb +3 -2
- data/templates/authentication/views/user/lost_password.erb +8 -5
- data/templates/authentication/views/user/new_password.erb +9 -6
- data/templates/authentication/views/user/password_recovery.erb +10 -7
- data/templates/authentication/views/user/signup.erb +12 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b91f4bbae88c947b6af166ff5c11afe327010d00
|
4
|
+
data.tar.gz: 772aee636fe68d50bb31dd8229b4a882c87c85ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54336733f2fff32e389c889993e85ac96ac895b4b8d3eba95993c254f104d9ee9d6fef202e1a74697e2328057558105913de3c2a43e83420e797e527c040cdd1
|
7
|
+
data.tar.gz: 0205c2c7ff6e4f7a148e0ed6dab118a5f569b743dd532ed6792441abdc36d0db0051b191b94a44bdafec5ab42f712d2fc1023d4d674289f81ddbeddcfb793665
|
data/lib/gennaro/version.rb
CHANGED
@@ -2,33 +2,35 @@
|
|
2
2
|
<%= erb :'template/header' %>
|
3
3
|
|
4
4
|
<% if defined? @error %>
|
5
|
-
<
|
5
|
+
<div class="alert alert-danger"><%= @error %></div>
|
6
6
|
<% elsif defined? @success %>
|
7
|
-
<
|
7
|
+
<div class="alert alert-success"><%= @success %></div>
|
8
8
|
<% elsif defined? @users %>
|
9
|
-
<form action="<%= @current_url %>" method="post">
|
9
|
+
<form action="<%= @current_url %>" method="post" role="form">
|
10
|
+
<h2><%= @title %></h2>
|
10
11
|
|
11
|
-
<select name="username">
|
12
|
+
<select name="username" class="form-control">
|
12
13
|
<% @users.each { |user| %>
|
13
14
|
<option value="<%= user.username %>"><%= user.username %></option>
|
14
15
|
<% } %>
|
15
16
|
</select><br />
|
16
17
|
|
17
18
|
<%= csrf_tag %>
|
18
|
-
<
|
19
|
+
<button class="btn btn-lg btn-primary btn-block" type="submit" name="go">Change</button>
|
19
20
|
</form>
|
20
21
|
<% else %>
|
21
|
-
<form action="<%= @current_url %>" method="post">
|
22
|
+
<form action="<%= @current_url %>" method="post" role="form">
|
23
|
+
<h2><%= @title %></h2>
|
22
24
|
|
23
|
-
<select name="level">
|
25
|
+
<select name="level" class="form-control">
|
24
26
|
<% @levels.each_pair { |key, val| %>
|
25
27
|
<option value="<%= key %>" <%= 'selected' if val == @user.permission_level %>><%= key.capitalize %></option>
|
26
28
|
<% } %>
|
27
29
|
</select><br />
|
28
30
|
|
29
31
|
<%= csrf_tag %>
|
30
|
-
<input
|
31
|
-
<
|
32
|
+
<input type="hidden" value="<%= @user.username %>" name="username">
|
33
|
+
<button class="btn btn-lg btn-primary btn-block" type="submit" name="change">Change</button>
|
32
34
|
</form>
|
33
35
|
<% end %>
|
34
36
|
|
@@ -2,15 +2,19 @@
|
|
2
2
|
<%= erb :'template/header' %>
|
3
3
|
|
4
4
|
<% if defined? @error %>
|
5
|
-
<
|
5
|
+
<div class="alert alert-danger"><%= @error %></div>
|
6
6
|
<% elsif defined? @success %>
|
7
|
-
<
|
7
|
+
<div class="alert alert-success"><%= @success %></div>
|
8
|
+
<script>setTimeout(function() { window.location = '/'; }, 1500);</script>
|
8
9
|
<% else %>
|
9
|
-
<form action="<%= @current_url %>" method="post">
|
10
|
-
<
|
11
|
-
|
10
|
+
<form action="<%= @current_url %>" method="post" role="form">
|
11
|
+
<h2><%= @title %></h2>
|
12
|
+
|
13
|
+
<input type="text" placeholder="username" name="username" class="form-control" required autofocus><br>
|
14
|
+
<input type="password" placeholder="password" name="password" class="form-control" required ><br>
|
15
|
+
|
12
16
|
<%= csrf_tag %>
|
13
|
-
<
|
17
|
+
<button class="btn btn-lg btn-primary btn-block" type="submit" name="login">Login</button>
|
14
18
|
</form>
|
15
19
|
<% end %>
|
16
20
|
|
@@ -2,9 +2,10 @@
|
|
2
2
|
<%= erb :'template/header' %>
|
3
3
|
|
4
4
|
<% if defined? @error %>
|
5
|
-
<
|
5
|
+
<div class="alert alert-danger"><%= @error %></div>
|
6
6
|
<% elsif defined? @success %>
|
7
|
-
<
|
7
|
+
<div class="alert alert-success"><%= @success %></div>
|
8
|
+
<script>setTimeout(function() { window.location = '/user/login'; }, 1500);</script>
|
8
9
|
<% end %>
|
9
10
|
|
10
11
|
<%= erb :'template/footer' %>
|
@@ -2,14 +2,17 @@
|
|
2
2
|
<%= erb :'template/header' %>
|
3
3
|
|
4
4
|
<% if defined? @error %>
|
5
|
-
<
|
5
|
+
<div class="alert alert-danger"><%= @error %></div>
|
6
6
|
<% elsif defined? @success %>
|
7
|
-
<
|
7
|
+
<div class="alert alert-success"><%= @success %></div>
|
8
8
|
<% else %>
|
9
|
-
<form action="<%= @current_url %>" method="post">
|
10
|
-
<
|
9
|
+
<form action="<%= @current_url %>" method="post" role="form">
|
10
|
+
<h2><%= @title %></h2>
|
11
|
+
|
12
|
+
<input type="text" placeholder="username" name="username" class="form-control" required autofocus><br>
|
13
|
+
|
11
14
|
<%= csrf_tag %>
|
12
|
-
<
|
15
|
+
<button class="btn btn-lg btn-primary btn-block" type="submit" name="request">Request</button>
|
13
16
|
</form>
|
14
17
|
<% end %>
|
15
18
|
|
@@ -2,15 +2,18 @@
|
|
2
2
|
<%= erb :'template/header' %>
|
3
3
|
|
4
4
|
<% if defined? @error %>
|
5
|
-
<
|
5
|
+
<div class="alert alert-danger"><%= @error %></div>
|
6
6
|
<% elsif defined? @success %>
|
7
|
-
<
|
7
|
+
<div class="alert alert-success"><%= @success %></div>
|
8
8
|
<% else %>
|
9
|
-
<form action="<%= @current_url %>" method="post">
|
10
|
-
<
|
11
|
-
|
9
|
+
<form action="<%= @current_url %>" method="post" role="form">
|
10
|
+
<h2><%= @title %></h2>
|
11
|
+
|
12
|
+
<input type="password" placeholder="current password" name="curr_password" class="form-control" required autofocus><br>
|
13
|
+
<input type="password" placeholder="new password" name="password" class="form-control" required ><br>
|
14
|
+
|
12
15
|
<%= csrf_tag %>
|
13
|
-
<
|
16
|
+
<button class="btn btn-lg btn-primary btn-block" type="submit" name="send">Send</button>
|
14
17
|
</form>
|
15
18
|
<% end %>
|
16
19
|
|
@@ -2,16 +2,19 @@
|
|
2
2
|
<%= erb :'template/header' %>
|
3
3
|
|
4
4
|
<% if defined? @error %>
|
5
|
-
<
|
5
|
+
<div class="alert alert-danger"><%= @error %></div>
|
6
6
|
<% elsif defined? @success %>
|
7
|
-
<
|
7
|
+
<div class="alert alert-success"><%= @success %></div>
|
8
8
|
<% else %>
|
9
|
-
<form action="<%= @current_url %>" method="post">
|
10
|
-
<
|
11
|
-
|
12
|
-
<input type="
|
9
|
+
<form action="<%= @current_url %>" method="post" role="form">
|
10
|
+
<h2><%= @title %></h2>
|
11
|
+
|
12
|
+
<input type="text" placeholder="username" name="username" class="form-control" required autofocus><br>
|
13
|
+
<input type="password" placeholder="code" name="passcode" class="form-control" required ><br>
|
14
|
+
<input type="password" placeholder="new password" name="password" class="form-control" required ><br>
|
15
|
+
|
13
16
|
<%= csrf_tag %>
|
14
|
-
<
|
17
|
+
<button class="btn btn-lg btn-primary btn-block" type="submit" name="recover">Recover</button>
|
15
18
|
</form>
|
16
19
|
<% end %>
|
17
20
|
|
@@ -1,17 +1,21 @@
|
|
1
|
-
<% @title = '
|
1
|
+
<% @title = 'Sign up' %>
|
2
2
|
<%= erb :'template/header' %>
|
3
3
|
|
4
4
|
<% if defined? @error %>
|
5
|
-
<
|
5
|
+
<div class="alert alert-danger"><%= @error %></div>
|
6
6
|
<% elsif defined? @success %>
|
7
|
-
<
|
7
|
+
<div class="alert alert-success"><%= @success %></div>
|
8
|
+
<script>setTimeout(function() { window.location = '/user/login'; }, 1500);</script>
|
8
9
|
<% else %>
|
9
|
-
<form action="<%= @current_url %>" method="post">
|
10
|
-
<
|
11
|
-
|
12
|
-
<input type="
|
10
|
+
<form action="<%= @current_url %>" method="post" role="form">
|
11
|
+
<h2><%= @title %></h2>
|
12
|
+
|
13
|
+
<input type="text" placeholder="username" name="username" class="form-control" required autofocus><br>
|
14
|
+
<input type="email" placeholder="email" name="email" class="form-control" required ><br>
|
15
|
+
<input type="password" placeholder="password" name="password" class="form-control" required ><br>
|
16
|
+
|
13
17
|
<%= csrf_tag %>
|
14
|
-
<
|
18
|
+
<button class="btn btn-lg btn-primary btn-block" type="submit" name="signup">Sign up</button>
|
15
19
|
</form>
|
16
20
|
<% end %>
|
17
21
|
|