trusty-cms 3.9.1 → 3.9.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68b5d192b0eb704a3c5fa94908c6bb6afcf2e075e4fa35d3fdcc752edd3f0d40
4
- data.tar.gz: 3e6def89678f029646758e77501309e3eb22d1fec354c06cba9c7e4d19c6285e
3
+ metadata.gz: 246d866f0a6aa60ac12d02ab96b5b63579cfd1d9e063a216a46599363ef9c509
4
+ data.tar.gz: baf4525e2d34937dc0166b1c4d718f44b103a3fbff8ae31aeb2a4604f9bf0c02
5
5
  SHA512:
6
- metadata.gz: b8cca1a28477268d7acc711f99e41fb6a50fd45826536f5f62817cbab0a7104a3ca02c3936a6ae23d5980063faf8d278e420a9c7fa3ee62db8585d9e44d9d433
7
- data.tar.gz: 803f000d78f14bf6a4c28148920476bf8a6662cf6474477fb5d1a9ea19c4c919a6945480832bfc8b432ea2c00e359ee9c6dbe600c74eb4306230b568830d6678
6
+ metadata.gz: f50cdce31139be21bf316c906f922a86e2fb6a51e8b4beb1ee3efc56db7b25ed8cef192fc056d1b72676f0af44125e2f23dd74f4e2c80d0610be9ed67ffc0934
7
+ data.tar.gz: 8c255a2a22bfcb9ecadba9c81390d7df1cf5a36d078873bd030d15449341ca7b0824764dc65620eec2a6581f7b43e4a344790a53a5a63c8f5895becad99649ee
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (3.9.1)
4
+ trusty-cms (3.9.2)
5
5
  RedCloth (= 4.3.2)
6
6
  acts_as_list (~> 0.9.5)
7
7
  acts_as_tree (>= 2.6.1, < 2.9.0)
@@ -142,7 +142,7 @@ GEM
142
142
  haml (>= 4.0, < 6)
143
143
  nokogiri (>= 1.6.0)
144
144
  ruby_parser (~> 3.5)
145
- httparty (0.17.3)
145
+ httparty (0.18.0)
146
146
  mime-types (~> 3.0)
147
147
  multi_xml (>= 0.5.2)
148
148
  i18n (1.8.2)
@@ -0,0 +1,8 @@
1
+ class DeviseMailer < Devise::Mailer
2
+
3
+ def reset_password_instructions(record, token, opts={})
4
+ mail = super
5
+ mail.subject = "Reset Password for TrustyCMS for ${record.first_name}"
6
+ mail
7
+ end
8
+ end
@@ -4,7 +4,7 @@
4
4
  = image_tag('/assets/admin/default_safe_login.svg', alt: 'web browser with padlock on top')
5
5
  .login
6
6
  %h1 Log in
7
- = form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
7
+ = form_for(resource, as: resource_name, url: authenticate_path) do |f|
8
8
  .field
9
9
  = f.label :email
10
10
  %br/
@@ -0,0 +1,5 @@
1
+ %p
2
+ Hello #{@resource.email}!
3
+ %p Someone has requested a link to change your TrustyCMS password. You can do this through the link below.
4
+ %p= link_to 'Change my password', edit_user_password_url(@resource, reset_password_token: @token)
5
+ %p Your password won't change until you access the link above and create a new one.
@@ -29,7 +29,7 @@ Devise.setup do |config|
29
29
  config.mailer_sender = ENV['ORG_FROM_EMAIL'] ||= 'admin@trustycms.org'
30
30
 
31
31
  # Configure the class responsible to send e-mails.
32
- # config.mailer = 'Devise::Mailer'
32
+ config.mailer = 'DeviseMailer'
33
33
 
34
34
  # Configure the parent class responsible to send e-mails.
35
35
  # config.parent_mailer = 'ActionMailer::Base'
data/config/routes.rb CHANGED
@@ -1,6 +1,9 @@
1
1
  TrustyCms::Application.routes.draw do
2
2
  root to: 'site#show_page'
3
3
  devise_for :users, module: :devise, :skip => :registration
4
+ as :user do
5
+ post 'authenticate', to: 'devise/sessions#create', as: :authenticate
6
+ end
4
7
  get '/rad_social/mail' => 'social_mailer#social_mail_form', as: :rad_social_mail_form
5
8
  post '/rad_social/mail' => 'social_mailer#create_social_mail', as: :rad_create_social_mail
6
9
  TrustyCms::Application.config.enabled_extensions.each { |ext|
data/lib/trusty_cms.rb CHANGED
@@ -2,6 +2,6 @@ TRUSTY_CMS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "..")) unle
2
2
 
3
3
  unless defined? TrustyCms::VERSION
4
4
  module TrustyCms
5
- VERSION = '3.9.1'
5
+ VERSION = '3.9.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trusty-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.9.1
4
+ version: 3.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - TrustyCms CMS dev team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-24 00:00:00.000000000 Z
11
+ date: 2020-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: acts_as_list
@@ -662,6 +662,7 @@ files:
662
662
  - app/helpers/site_helper.rb
663
663
  - app/helpers/sites_helper.rb
664
664
  - app/mailers/application_mailer.rb
665
+ - app/mailers/devise_mailer.rb
665
666
  - app/mailers/rad_social_mailer.rb
666
667
  - app/models/asset.rb
667
668
  - app/models/asset_type.rb
@@ -763,6 +764,7 @@ files:
763
764
  - app/views/devise/passwords/new.html.haml
764
765
  - app/views/devise/sessions/new.html.haml
765
766
  - app/views/devise/shared/_links.html.haml
767
+ - app/views/devise_mailer/reset_password_instructions.html.haml
766
768
  - app/views/layouts/application.html.haml
767
769
  - app/views/layouts/mail.html.haml
768
770
  - app/views/layouts/mailer.text.haml