scottmotte-merb_auth_slice_multisite 0.8.5 → 0.8.6

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.
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 8
4
- :patch: 5
4
+ :patch: 6
@@ -0,0 +1,61 @@
1
+ <% @login_param = Merb::Authentication::Strategies::Multisite::Base.login_param %>
2
+ <% @password_param = Merb::Authentication::Strategies::Multisite::Base.password_param %>
3
+ <% @site_id_param = Merb::Authentication::Strategies::Multisite::Base.site_id_param %>
4
+ <%
5
+ # make @current_site value. application.rb does not get call
6
+ # because the authentication is protected at the rack level - which is better,
7
+ # but it means I have to add the following duplicate line of code as far as I know.
8
+ @current_site = Site.first(:subdomain => request.first_subdomain)
9
+ %>
10
+
11
+ <%= error_messages_for session.authentication %>
12
+ <form action="<%= slice_url(:merb_auth_slice_multisite, :perform_login) %>" method="post" id="loginForm">
13
+ <h3>Login</h3>
14
+ <input type="hidden" name="<%= @site_id_param.to_s %>" value="<%= @current_site.id %>" id="<%= @site_id_param.to_s %>">
15
+ <input type="hidden" name="_method" value="PUT" />
16
+
17
+ <div id="loginFields" class="fields">
18
+ <div id="loginElements" class="elements">
19
+ <label for="<%= @login_param.to_s %>"><%= @login_param.to_s.capitalize %>:</label>
20
+ <div id="loginElement" class="element">
21
+ <input type="text" name="<%= @login_param.to_s %>" value="" id="<%= @login_param.to_s %>">
22
+ </div>
23
+ </div>
24
+ <div id="passwordElements" class="elements">
25
+ <label for="<%= @password_param.to_s %>"><%= @password_param.to_s.capitalize %>:</label>
26
+ <div id="passwordElement" class="element">
27
+ <input type="password" name="<%= @password_param.to_s %>" value="" id="<%= @password_param.to_s %>">
28
+ </div>
29
+ </div>
30
+ <div id="remember_meElements" class="elements">
31
+ <div id="remember_meElement" class="element">
32
+ <input type="checkbox" name="remember_me" value="1" id="remember_me" /> <label for="remember_me">Remember me</label>
33
+ </div>
34
+ </div>
35
+ <div id="loginActions" class="actions">
36
+ <div id="loginAction" class="action">
37
+ <input type="submit" name="loginSubmit" value="Log In" id="loginSubmit" />
38
+ </div>
39
+ <div id="forgotToggleAction" class="action">
40
+ <a href="#" id="forgotToggle">Forgot password</a>
41
+ </div>
42
+ </div>
43
+ </div>
44
+ </form>
45
+
46
+ <form action="<%= slice_url(:merb_auth_slice_multisite, :send_password) %>" method="post" id="forgotForm">
47
+ <input type="hidden" name="<%= @site_id_param.to_s %>" value="<%= @current_site.id %>" id="<%= @site_id_param.to_s %>">
48
+ <div id="forgotFields" class="fields">
49
+ <div id="forgotLoginElements" class="elements">
50
+ <label for="<%= @login_param.to_s %>"><%= @login_param.to_s.capitalize %>:</label>
51
+ <div id="forgotLoginElement" class="element">
52
+ <input type="text" class="text" name="<%= @login_param.to_s %>" id="<%= @login_param.to_s %>" />
53
+ </div>
54
+ </div>
55
+ <div id="forgotLoginActions" class="actions">
56
+ <div id="forgotLoginAction" class="action">
57
+ <input type="submit" name="forgotLoginSubmit" value="Reset Password" id="forgotLoginSubmit" />
58
+ </div>
59
+ </div>
60
+ </div>
61
+ </form>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scottmotte-merb_auth_slice_multisite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - scottmotte
@@ -84,6 +84,9 @@ files:
84
84
  - stubs/app
85
85
  - stubs/app/controllers
86
86
  - stubs/app/controllers/sessions.rb
87
+ - stubs/app/views
88
+ - stubs/app/views/exceptions
89
+ - stubs/app/views/exceptions/unauthenticated.html.erb
87
90
  has_rdoc: true
88
91
  homepage: http://github.com/scottmotte/merb_auth_slice_multisite
89
92
  post_install_message: