authstrategies 0.1.41 → 0.1.42

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NWMzOGVjMzI4YThhYWQ3MTk3MTg3ZDFlODU0ZGIwOGM2ZDcyNjY4NQ==
4
+ YTNmMDNjMjA3Y2FkMTVjZTA2ZGU5NGMwZmFjZTczNTdmOGY3OTcwMA==
5
5
  data.tar.gz: !binary |-
6
- NTliZGE4Njc3NzJmYzRiZjljNjFiMTZlOTM5NzBmNWFiNTJjNmRjZQ==
6
+ OTg1MmNlNzJhODc5MTQ0ZDA2ZGMzNWNiZWVlMmYzZDM1MDQxNmQxNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OWYzMGE1NWRjY2IwM2YzYjY4OGM3OGQxN2E1MjU5ZDM4NWM3MzA2M2M3MGQ1
10
- NTFhYzAzNGU5Y2MxMjRhMzRiZDM2MjY4YmNiMGMyMThmNzRmZjkyZjFjZDBi
11
- NzU4M2EyZDMyOGI3NTU2OTQ1MDkwZTI4MWFmN2ZhODIzYjVkNTQ=
9
+ MWIyOWFkODNjZGJlNjdhYzUxZmJlZTJlZmIwOThjZjkzZmJjYzcwODc0M2Y5
10
+ OWI5OGFhMGIyNTMyYTRlZjg1ZWUzZTMwMjFmODk3MDUzN2ZmNGJkYzBlZWI3
11
+ ZjU3Y2RkNDg5NWY4NGZlMGVjZmU2NzdkNDVhYjBmM2EzYWQxMmE=
12
12
  data.tar.gz: !binary |-
13
- YjExNDMzOTA5MTk4MTM0YTAzMzU1ZjRkMjcyNTZiMGE1Mzk2NjAxMDlmMmI5
14
- OGUzYmRmMTk1MjllNTRhZTdhOTJkNmNhOGNlYTJjOTQyOGI5OTFkYWE3OGE3
15
- MGJmMzY4NzM5MjlhMzI5Yjk5M2EzY2Y0N2QyNjU4OWI5ZGJkMzc=
13
+ ZWE5MzkwOTZmZGIwMGE0ODYzODU0NDFiYWM0ZTlhNDYwNjU5NjU1YjEzZWFl
14
+ ODQ1N2RlNTJiYWRjZmQyZTViMGMwODM0OGFlNmQxZDI2MDhhMDYxMzExNzhl
15
+ MGViNGVjOTQ0ZjY5YTM3NzViYTIxMmEzZDQxNjYzMGVjZTU5NDY=
@@ -1,7 +1,7 @@
1
1
  module Authstrategies
2
2
  module Helpers
3
- def authenticate!
4
- env['warden'].authenticate!
3
+ def authenticate! strategy = :password
4
+ env['warden'].authenticate! strategy
5
5
  end
6
6
 
7
7
  def authenticated?
@@ -8,9 +8,8 @@ module Authstrategies
8
8
  user = User.find_by_email(request["email"])
9
9
  if user && user.authenticate(request)
10
10
  success!(user)
11
- else
12
- fail("Invalid username or password!")
13
- end
11
+ end
12
+ fail("Invalid username or password!")
14
13
  end
15
14
  end
16
15
  end
@@ -1,3 +1,3 @@
1
1
  module Authstrategies
2
- VERSION = "0.1.41"
2
+ VERSION = "0.1.42"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authstrategies
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.41
4
+ version: 0.1.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dobromir Ivanov