wbase 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0cda473dbe3e4f3c63a2816fb92eac7d7f373e71
|
4
|
+
data.tar.gz: 20451b3b8b36c4748582f9c2609af34890c10d47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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[:
|
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[:
|
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="<%=
|
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="
|
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