user_authentication 0.1.0 → 0.1.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/app/controllers/application_controller.rb +3 -1
- data/lib/user_authentication/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cfc6a2fd3daa8debcad4436104f91da936a1761d
|
|
4
|
+
data.tar.gz: 796e0e01ca07e34e9b8c356bdae424987168d338
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 374dc5c6730cc4a833b9b90912c186b55f7608194bbfadb2731fea5cd71014191d8cab7c9c4e9067219369531e8b5860dd97f10e9599f65ec32e673d0a1c0b4e
|
|
7
|
+
data.tar.gz: b410d6bc9a72f06e484899cf2c20a8158bdae84c784ac30cbe49cbc3014dc1509a22587157ddef62535605de3db01afc890dd32c4c582b909f9433fcd57750bd
|
|
@@ -6,7 +6,9 @@ class ApplicationController < ActionController::Base
|
|
|
6
6
|
def authorize
|
|
7
7
|
# Not using skip before_filter, since main app could inadvertantly override that.
|
|
8
8
|
# For example, it could have required the filter in its application_controller.
|
|
9
|
-
|
|
9
|
+
if params[:controller] == 'users' && ['login', 'logout', 'signup'].include?(params[:action])
|
|
10
|
+
return true
|
|
11
|
+
end
|
|
10
12
|
|
|
11
13
|
if current_user.nil?
|
|
12
14
|
session[:return_to] = url_for params
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: user_authentication
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sujoy Gupta
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-10-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|