smithycms-auth 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee6f75964110980583746b49a9a99ab011427672
4
- data.tar.gz: c8c1f2e711186ff9b0a50c3bafc582b484d91521
3
+ metadata.gz: bb9fa1626d495474cbd81a07679d7b03e72b05da
4
+ data.tar.gz: 7f244607a1a51e629807bf56b9bed816b9849f8f
5
5
  SHA512:
6
- metadata.gz: 2bfd1d415dc7d223e0ea65c98fde4355f36687b5d7e143e43f9d848242a0b8092bd8eac76ac34deb0c23e016c39773667cf5535b4c4e65e2f7eb97848511d9d3
7
- data.tar.gz: 501f8f4d6a086ea029201b4eb1d611e3bec534433cea5947cae6c1b19db5847db850ce51875c99815f3944009765b362c118e26bbdfa43a50e8088376d7ee7a1
6
+ metadata.gz: 19d96efc3c6b1f802e63a9daca67dd74a329d8aad8bbdfce972eb00478ded0e7aeed0582b1805df4261f8abdeafe1966251ac6308535ccdcdef97b120c24b9c4
7
+ data.tar.gz: 4ad8d4bcd85bb6435eb64f3b54accc13b8df25f49a3aba9490dd7fa523921c002e41f9af7c8943abe1edb066b69453692ded772da1f56858775c6d63633cbe83
@@ -27,11 +27,11 @@ module Smithy
27
27
  Smithy.log :debug, "[Auth] session[:user_id]: #{session[:user_id].inspect}"
28
28
  redirect_to root_url, :notice => "Logged out!"
29
29
  end
30
- end
31
30
 
32
- private
33
- def filtered_params
34
- params.fetch(:login, {}).permit( :email, :password )
35
- end
31
+ private
32
+ def filtered_params
33
+ params.fetch(:login, {}).permit( :email, :password )
34
+ end
36
35
 
36
+ end
37
37
  end
data/config/routes.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  Smithy::Engine.routes.prepend do
2
2
  scope '/smithy' do
3
- get '/login' => 'user_sessions#new', :as => :login
4
- delete '/logout' => 'user_sessions#destroy', :as => :logout
3
+ get '/login' => 'user_sessions#new', :as => :login unless has_named_route?(:login)
4
+ delete '/logout' => 'user_sessions#destroy', :as => :logout unless has_named_route?(:logout)
5
5
  resource :user_session, :only => [:new, :create, :destroy]
6
6
  resources :users
7
7
  end
@@ -1,5 +1,5 @@
1
1
  module Smithy
2
2
  module Auth
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smithycms-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Glen