muck-users 0.3.15 → 0.3.16

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.15
1
+ 0.3.16
@@ -51,7 +51,7 @@ class Muck::UsersController < ApplicationController
51
51
  @page_title = t('muck.users.register_account', :application_name => GlobalConfig.application_name)
52
52
  cookies.delete :auth_token
53
53
  @user = User.new(params[:user])
54
- @user.terms_of_service = true if params[:user][:terms_of_service] # This value is not mass updatable and must be set manually.
54
+ setup_tos
55
55
  check_access_code
56
56
  check_recaptcha
57
57
  success, path = setup_user
@@ -182,6 +182,13 @@ class Muck::UsersController < ApplicationController
182
182
  end
183
183
  end
184
184
 
185
+ def setup_tos
186
+ # This value is not mass updatable and must be set manually.
187
+ if params[:user][:terms_of_service] == '1' || params[:user][:terms_of_service] == true
188
+ @user.terms_of_service = true
189
+ end
190
+ end
191
+
185
192
  def check_recaptcha
186
193
  if GlobalConfig.use_recaptcha
187
194
  if !(verify_recaptcha(@user) && @user.valid?)
data/muck-users.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{muck-users}
8
- s.version = "0.3.15"
8
+ s.version = "0.3.16"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Justin Ball", "Joel Duffin"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muck-users
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 51
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 15
10
- version: 0.3.15
9
+ - 16
10
+ version: 0.3.16
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Ball