muck-users 0.3.15 → 0.3.16
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/controllers/muck/users_controller.rb +8 -1
- data/muck-users.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
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
|
-
|
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
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:
|
4
|
+
hash: 51
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 16
|
10
|
+
version: 0.3.16
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Justin Ball
|