authentasaurus 0.6.9 → 0.6.10
Sign up to get free protection for your applications and to get access to all the features.
- data/app/views/authentasaurus_emailer/recovery_mail.html.erb +1 -1
- data/app/views/authentasaurus_emailer/validation_mail.html.erb +1 -1
- data/app/views/validations/{activate.html.erb → validate.html.erb} +1 -1
- data/generators/authentasaurus_views/templates/views/validations/{activate.html.erb → validate.html.erb} +1 -1
- data/lib/authentasaurus/validations_controller.rb +7 -1
- data/lib/helpers/routing.rb +2 -1
- metadata +5 -5
@@ -1,7 +1,7 @@
|
|
1
1
|
<p>Dear <%= @name %>,</p>
|
2
2
|
|
3
3
|
<p>A request has been made to recover your account's password.</p>
|
4
|
-
<p>Please visit this <%= link_to "link", recover_password_url(:host => AUTHENTASAURUS[:mail][:host], @token) %> and follow the instructions.</p>
|
4
|
+
<p>Please visit this <%= link_to "link", recover_password_url(:host => AUTHENTASAURUS[:mail][:host], :token => @token) %> and follow the instructions.</p>
|
5
5
|
|
6
6
|
<p>Best Regards,</p>
|
7
7
|
<p><%= AUTHENTASAURUS[:mail][:host] %> Team</p>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<p>Dear <%= @name %>,</p>
|
2
2
|
|
3
|
-
<p>Please validate your account at <%= AUTHENTASAURUS[:mail][:host] %> by visiting this <%= link_to "link",
|
3
|
+
<p>Please validate your account at <%= AUTHENTASAURUS[:mail][:host] %> by visiting this <%= link_to "link", activate_url(:host => AUTHENTASAURUS[:mail][:host] , :code => @vcode) %>.</p>
|
4
4
|
|
5
5
|
<p>Best Regards,</p>
|
6
6
|
<p><%= AUTHENTASAURUS[:mail][:host] %> Team</p>
|
@@ -8,6 +8,12 @@ module Authentasaurus::ValidationsController
|
|
8
8
|
end
|
9
9
|
|
10
10
|
module InstanceMethods
|
11
|
+
def validate
|
12
|
+
respond_to do |format|
|
13
|
+
format.html
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
11
17
|
def activate
|
12
18
|
respond_to do |format|
|
13
19
|
validation = Validation.find_by_validation_code(params[:vcode])
|
@@ -17,7 +23,7 @@ module Authentasaurus::ValidationsController
|
|
17
23
|
format.html { redirect_to login_url, :notice => I18n.t(:validation_successful, :scope => [:authentasaurus, :messages, :validations])}
|
18
24
|
else
|
19
25
|
flash.now[:alert] = I18n.t(:validation_failed, :scope => [:authentasaurus, :messages, :validations])
|
20
|
-
format.html
|
26
|
+
format.html { render :validate }
|
21
27
|
end
|
22
28
|
end
|
23
29
|
end
|
data/lib/helpers/routing.rb
CHANGED
@@ -59,7 +59,8 @@ module Helpers::Routing
|
|
59
59
|
def authentasaurus_validatable(*opts)
|
60
60
|
options = opts.extract_options!
|
61
61
|
|
62
|
-
validate "/validate", options.dup.merge({:controller => :validations, :action => :
|
62
|
+
validate "/validate", options.dup.merge({:controller => :validations, :action => :validate})
|
63
|
+
activate "/activate", options.dup.merge({:controller => :validations, :action => :activate})
|
63
64
|
resend_validation_email "/resend-validation", options.dup.merge({:controller => :validations, :action => :resend_validation_email, :conditions => {:method => :get}})
|
64
65
|
do_resend_validation_email "/resend-validation", options.dup.merge({:controller => :validations, :action => :do_resend_validation_email, :conditions => {:method => :post}})
|
65
66
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authentasaurus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 10
|
10
|
+
version: 0.6.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Omar Mekky
|
@@ -79,7 +79,7 @@ files:
|
|
79
79
|
- app/views/users/index.html.erb
|
80
80
|
- app/views/users/new.html.erb
|
81
81
|
- app/views/users/show.html.erb
|
82
|
-
- app/views/validations/
|
82
|
+
- app/views/validations/validate.html.erb
|
83
83
|
- app/views/validations/resend_validation_email.html.erb
|
84
84
|
- config/locales/en.yml
|
85
85
|
- generators/authentasaurus/authentasaurus_generator.rb
|
@@ -115,7 +115,7 @@ files:
|
|
115
115
|
- generators/authentasaurus_views/templates/views/users/index.html.erb
|
116
116
|
- generators/authentasaurus_views/templates/views/users/new.html.erb
|
117
117
|
- generators/authentasaurus_views/templates/views/users/show.html.erb
|
118
|
-
- generators/authentasaurus_views/templates/views/validations/
|
118
|
+
- generators/authentasaurus_views/templates/views/validations/validate.html.erb
|
119
119
|
- generators/authentasaurus_views/templates/views/validations/resend_validation_email.html.erb
|
120
120
|
- lib/action_controller/authorization.rb
|
121
121
|
- lib/action_view/authorization.rb
|