entrance 0.4.7 → 0.4.8

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.
@@ -19,9 +19,10 @@ module Entrance
19
19
  end
20
20
 
21
21
  def authenticate_and_login(username, password, remember_me = false)
22
- if user = Entrance.model.authenticate(username, password)
23
- login!(user, remember_me)
24
- user
22
+ if user = Entrance.model.authenticate(username, password) \
23
+ and (!user.respond_to?(:can_login?) || user.can_login?)
24
+ login!(user, remember_me)
25
+ user
25
26
  end
26
27
  end
27
28
 
@@ -1,7 +1,7 @@
1
1
  module Entrance
2
2
  MAJOR = 0
3
3
  MINOR = 4
4
- PATCH = 7
4
+ PATCH = 8
5
5
 
6
6
  VERSION = [MAJOR, MINOR, PATCH].join('.')
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: entrance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: