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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ffb87963dca325931b4e2c6dff618271efbd2d47
4
- data.tar.gz: 6236635ec627f6096717abaa7d272fca85a5329f
3
+ metadata.gz: cfc6a2fd3daa8debcad4436104f91da936a1761d
4
+ data.tar.gz: 796e0e01ca07e34e9b8c356bdae424987168d338
5
5
  SHA512:
6
- metadata.gz: 901e26a4ca310b42d4b8d74bf8328923f73dca947b9b08cbf93daf5aa159423abfbd07f830721338ccec8ddf7b93d558b831ee82e88887dc05fc049a7b55b7c8
7
- data.tar.gz: e21a2c29d3c4eb32fa9554d323b780d2bdad7a9a4eb606c8fbb209db0c75671545fea0cf26d02c731ae6cd9dd588dc11236b6bfbbe5ac0d7047f8b14df472d8b
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
- return true if params[:controller] == 'users' && params[:action] == 'login'
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
@@ -1,3 +1,3 @@
1
1
  module UserAuthentication
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-09-25 00:00:00.000000000 Z
11
+ date: 2013-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails