wbase 0.3.8 → 0.3.9

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
  SHA1:
3
- metadata.gz: f1f233ae69fdbf6d029c73c4d92945410afbcbff
4
- data.tar.gz: a762f876579a8ea1827d8dcf50dc19e3ebaa67e7
3
+ metadata.gz: 0cda473dbe3e4f3c63a2816fb92eac7d7f373e71
4
+ data.tar.gz: 20451b3b8b36c4748582f9c2609af34890c10d47
5
5
  SHA512:
6
- metadata.gz: e166c84df2bf05b462c6c47103927ccff795525658056ebad80a074b1974d94a0314465f518fb6ad983b989c199aa9ab7beb28e7fc3109567f75beeacf5d9400
7
- data.tar.gz: d1ad9f50e151cbd29ac719be6ec1bd104f13bd2828e19153e520b3d1232c067ee36dd8be4346095f2b1b20654fb006d71fb405fbabb07727ca88a7ac99e1f2b1
6
+ metadata.gz: 184c79c32c005851fe9914388638b694ed882ecf853a20a9a87c4f7abafaf5a18e6dca35f26c5e0bf3acf7ff29d982cbee3bc3c74a307dcb3ec3fe533e5b6ab6
7
+ data.tar.gz: 1955de1f38079cc610f8fe3323a8aaecf85cbb5965bba5de0919bd9fe441cf763f4722823612752c2d8d57bde35e5ab4a5feb422741cc0f0c7c7caf805e7cdd2
@@ -19,11 +19,11 @@ module Wbase
19
19
  end
20
20
 
21
21
  def edit
22
- @user = User.find_by(reset_token: params[:reset_token])
22
+ @user = User.find_by(reset_token: params[:token])
23
23
  end
24
24
 
25
25
  def update
26
- @user = User.find_by(reset_token: params[:reset_token])
26
+ @user = User.find_by(reset_token: params[:token])
27
27
  if @user
28
28
  @user.password = params[:password]
29
29
  if @user.save
@@ -45,7 +45,7 @@
45
45
  <% if !@user.nil? %>
46
46
  <tr>
47
47
  <td class="content-block powered-by" style="font-family: sans-serif; font-size: 12px !important; vertical-align: top; color: #999999; text-align: center;" align="center" valign="top">
48
- <a href="<%= edit_email_url(id: @user.reset_token) %>" style="color: #999999; font-size: 16px !important; text-align: center; text-decoration: none;">
48
+ <a href="<%= Wbase.url %>/emails/<%= @user.reset_token %>/edit" style="color: #999999; font-size: 16px !important; text-align: center; text-decoration: none;">
49
49
  unsubscribe
50
50
  </a>
51
51
  </td>
@@ -6,7 +6,7 @@
6
6
  <form id="reset-form" action="/password_reset" method="POST" novalidate="">
7
7
  <input type="hidden" name="authenticity_token" value="<%= form_authenticity_token %>">
8
8
  <input type="hidden" name="_method" value="PATCH">
9
- <input type="hidden" name="reset_token" value="<%= params[:reset_token] || @user.try(:reset_token) %>">
9
+ <input type="hidden" name="token" value="<%= params[:token] || @user.try(:reset_token) %>">
10
10
  <div class="form-group">
11
11
  <label for="password">New Password</label>
12
12
  <input type="password" class="form-control underlined" name="password" id="password" placeholder="Your new password" required>
data/lib/wbase/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Wbase
2
- VERSION = "0.3.8"
2
+ VERSION = "0.3.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wbase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - CJ Avilla