tenon 1.0.66 → 1.0.67
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/app/views/devise/mailer/confirmation_instructions.html.haml +7 -0
- data/app/views/devise/mailer/reset_password_instructions.html.haml +15 -0
- data/app/views/devise/mailer/unlock_instructions.html.haml +9 -0
- data/app/views/devise/passwords/edit.html.haml +22 -0
- data/app/views/devise/passwords/new.html.haml +2 -1
- data/config/initializers/devise.rb +1 -1
- data/lib/tenon/version.rb +1 -1
- metadata +2 -6
- data/app/views/devise/mailer/confirmation_instructions.html.erb +0 -5
- data/app/views/devise/mailer/reset_password_instructions.html.erb +0 -8
- data/app/views/devise/mailer/unlock_instructions.html.erb +0 -7
- data/app/views/devise/passwords/edit.html.erb +0 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e83c7e86103a80528486fef7dc264e16e465048f
|
|
4
|
+
data.tar.gz: 637ffc3abfd7f5bda03ebc603d84aeb925fe8718
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 540fa189161e7248d7cd6648ea5d043a943f5d3fc513ba19dd9f783fa9b0ea09ec252427dc7917a7614688981e93d898a3b8b40912d8807cdf191cc0c0ed4b8f
|
|
7
|
+
data.tar.gz: 05043c0ca2eea462525c122ddde922873b8cd5bf96ee78eebd6730bfce6b97c26816de78e7e8b9fcc89ef31e4fe5a3616a35d7499704e9f1923229d393bf718a
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
%p
|
|
2
|
+
Hello
|
|
3
|
+
= @resource.email
|
|
4
|
+
|
|
5
|
+
%p
|
|
6
|
+
Someone has requested a link to change your password, and you can do this through the link below.
|
|
7
|
+
|
|
8
|
+
%p
|
|
9
|
+
= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @token, host: Tenon::MySettings.full_url)
|
|
10
|
+
|
|
11
|
+
%p
|
|
12
|
+
If you didn't request this, please ignore this email.
|
|
13
|
+
|
|
14
|
+
%p
|
|
15
|
+
Your password won't change until you access the link above and create a new one.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
%p
|
|
2
|
+
Hello
|
|
3
|
+
= @resource.email
|
|
4
|
+
|
|
5
|
+
%p Your account has been locked due to an excessive amount of unsuccessful sign in attempts.
|
|
6
|
+
|
|
7
|
+
%p Click the link below to unlock your account:
|
|
8
|
+
|
|
9
|
+
%p= link_to 'Unlock my account', unlock_url(@resource, :unlock_token => @token, host: Tenon::MySettings.full_url)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
|
|
2
|
+
= f.hidden_field :reset_password_token
|
|
3
|
+
.row
|
|
4
|
+
%h4 Change your password
|
|
5
|
+
|
|
6
|
+
- unless resource.errors.empty?
|
|
7
|
+
.flash= resource.errors.full_messages.join('<br>').html_safe
|
|
8
|
+
|
|
9
|
+
.row.bordered
|
|
10
|
+
= f.label :password, class: "font"
|
|
11
|
+
= f.password_field :password, placeholder: '°°°°°°°°'
|
|
12
|
+
|
|
13
|
+
.row.bordered
|
|
14
|
+
= f.label :password_confirmation, class: "font"
|
|
15
|
+
= f.password_field :password_confirmation, placeholder: '°°°°°°°°'
|
|
16
|
+
|
|
17
|
+
.row.bordered
|
|
18
|
+
= f.submit "Change my password", class: 'btn btn-info'
|
|
19
|
+
|
|
20
|
+
.row.bordered
|
|
21
|
+
%p{:style => "text-align: right; margin-top: 10px; font-size: 12px;"}
|
|
22
|
+
= link_to "Sign In", new_user_session_path
|
|
@@ -6,10 +6,11 @@
|
|
|
6
6
|
.flash= resource.errors.full_messages.join('<br>').html_safe
|
|
7
7
|
.row.bordered
|
|
8
8
|
= f.label :email, :class => "font"
|
|
9
|
-
= f.text_field :email, placeholder: 'user@example.com'
|
|
9
|
+
= f.text_field :email, placeholder: 'user@example.com', :autofocus => true
|
|
10
10
|
|
|
11
11
|
.row.bordered
|
|
12
12
|
= f.submit "Send reset instructions", class: 'btn btn-info'
|
|
13
|
+
|
|
13
14
|
.row.bordered
|
|
14
15
|
%p{:style => "text-align: right; margin-top: 10px; font-size: 12px;"}
|
|
15
16
|
= link_to "Sign In", new_user_session_path
|
|
@@ -10,7 +10,7 @@ Devise.setup do |config|
|
|
|
10
10
|
# Configure the e-mail address which will be shown in Devise::Mailer,
|
|
11
11
|
# note that it will be overwritten if you use your own mailer class
|
|
12
12
|
# with default "from" parameter.
|
|
13
|
-
config.mailer_sender = '
|
|
13
|
+
config.mailer_sender = 'noreply@factore.ca'
|
|
14
14
|
|
|
15
15
|
# Configure the class responsible to send e-mails.
|
|
16
16
|
# config.mailer = 'Devise::Mailer'
|
data/lib/tenon/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tenon
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.67
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- factor[e] design initiative
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-06-
|
|
11
|
+
date: 2015-06-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: better_errors
|
|
@@ -1151,13 +1151,9 @@ files:
|
|
|
1151
1151
|
- app/services/tenon/redirector.rb
|
|
1152
1152
|
- app/views/devise/confirmations/new.html.erb
|
|
1153
1153
|
- app/views/devise/confirmations/new.html.haml
|
|
1154
|
-
- app/views/devise/mailer/confirmation_instructions.html.erb
|
|
1155
1154
|
- app/views/devise/mailer/confirmation_instructions.html.haml
|
|
1156
|
-
- app/views/devise/mailer/reset_password_instructions.html.erb
|
|
1157
1155
|
- app/views/devise/mailer/reset_password_instructions.html.haml
|
|
1158
|
-
- app/views/devise/mailer/unlock_instructions.html.erb
|
|
1159
1156
|
- app/views/devise/mailer/unlock_instructions.html.haml
|
|
1160
|
-
- app/views/devise/passwords/edit.html.erb
|
|
1161
1157
|
- app/views/devise/passwords/edit.html.haml
|
|
1162
1158
|
- app/views/devise/passwords/new.html.haml
|
|
1163
1159
|
- app/views/devise/registrations/edit.html.haml
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<p>Hello <%= @resource.email %>!</p>
|
|
2
|
-
|
|
3
|
-
<p>Someone has requested a link to change your password, and you can do this through the link below.</p>
|
|
4
|
-
|
|
5
|
-
<p><%= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %></p>
|
|
6
|
-
|
|
7
|
-
<p>If you didn't request this, please ignore this email.</p>
|
|
8
|
-
<p>Your password won't change until you access the link above and create a new one.</p>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<p>Hello <%= @resource.email %>!</p>
|
|
2
|
-
|
|
3
|
-
<p>Your account has been locked due to an excessive amount of unsuccessful sign in attempts.</p>
|
|
4
|
-
|
|
5
|
-
<p>Click the link below to unlock your account:</p>
|
|
6
|
-
|
|
7
|
-
<p><%= link_to 'Unlock my account', unlock_url(@resource, :unlock_token => @resource.unlock_token) %></p>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<h2>Change your password</h2>
|
|
2
|
-
|
|
3
|
-
<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| %>
|
|
4
|
-
<%= devise_error_messages! %>
|
|
5
|
-
<%= f.hidden_field :reset_password_token %>
|
|
6
|
-
|
|
7
|
-
<p><%= f.label :password %><br />
|
|
8
|
-
<%= f.password_field :password %></p>
|
|
9
|
-
|
|
10
|
-
<p><%= f.label :password_confirmation %><br />
|
|
11
|
-
<%= f.password_field :password_confirmation %></p>
|
|
12
|
-
|
|
13
|
-
<p><%= f.submit "Change my password" %></p>
|
|
14
|
-
<% end %>
|
|
15
|
-
|
|
16
|
-
<%= render :partial => "devise/shared/links" %>
|