volt-user_templates 0.2.0 → 0.2.1
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/VERSION +1 -1
- data/app/user_templates/tasks/user_template_tasks.rb +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0eaaeb969ed0696f54bb7050cb51ce7ff49897f7
|
4
|
+
data.tar.gz: 006cd8c8e3220f4b7f48b0b77d5a7c53a114b52d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4511e46fd90c38d93946c54b767cfdb0a12b124635a649ce822abeda44d18205c69c3a4cdb56d2384852ce1092ccd23edbb7ea10d80084b9fd4403223ca17e9e
|
7
|
+
data.tar.gz: a814236105ff75a201acc49df0523b7b5ea7db88e1edf4cd1231e3069cb5cdc3fd06f355a2f55caedef0cedf02c16b786de10c23761139bc122fdbca2509e999
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
@@ -3,11 +3,12 @@ class UserTemplateTasks < Volt::Task
|
|
3
3
|
# Find user by e-mail
|
4
4
|
Volt.skip_permissions do
|
5
5
|
store._users.where(email: email).fetch_first do |user|
|
6
|
-
|
7
|
-
|
6
|
+
if user
|
7
|
+
Mailer.deliver('user_templates/mailers/forgot', {to: email, name: user._name})
|
8
|
+
else
|
9
|
+
raise "There is no account with the e-mail of #{email}."
|
8
10
|
end
|
9
11
|
end
|
10
12
|
end
|
11
|
-
|
12
13
|
end
|
13
14
|
end
|