faalis 0.14.2 → 0.14.3

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: 3dc325f5bc92fc857110d0f0b00db9ff37d0173d
4
- data.tar.gz: 345b79f477cddb43cb678a6e37ffc11e56e723ba
3
+ metadata.gz: 1e3e6159671f88e1538d9a3eb65e6d6da9042f58
4
+ data.tar.gz: f6fb5aab1a5c0ba6a80f7a688a149c5f7ee557ce
5
5
  SHA512:
6
- metadata.gz: 5c43357a5679ae993acdefe10ff672e25ae0ac5e79ba7e534c26189f3504faf619332418d8606b62ba82c231c5061e5feb242a38e1ec85b0d27eda73919c9436
7
- data.tar.gz: fb19fcd2196afc871bdaee692f961d22b1927e013ab4965ae3389095627589f14e0484a9a7ec69a79a8bf85a5a7d777714968f8d33df1a61553a92f26f133645
6
+ metadata.gz: 7635159ba7b1370aeb2ecf527928aec5574eec1945670874f0603d7e3a3fe805a230bbd4ec4230d9a3e729d21ed978aa7be7ce1c1bca429f4e0494115f27399f
7
+ data.tar.gz: c82b1784b2c8ea26973279ad64bba18830d291cb983836a4867dfc8da30b8e26f16d69258275037c3be8e796a11ecfb9cd2a0452a6abe39c00a428e8f5a1c7b2
@@ -52,8 +52,11 @@ module Faalis
52
52
 
53
53
  def password_required?
54
54
  # TODO: nil? is not suitable for here we should use empty? or blink?
55
-
56
- (provider.nil? || password.nil?) && super
55
+ if Devise.omniauth_configs.any?
56
+ return (provider.nil? || password.nil?) && super
57
+ else
58
+ password.nil? && super
59
+ end
57
60
  end
58
61
 
59
62
  def self.find_from_oauth(auth, signed_in_resource=nil)
@@ -105,7 +105,7 @@
105
105
  </div>
106
106
  </a>
107
107
 
108
- <a href="faalis.user_session_path" class="btn-big">
108
+ <a href="<%= faalis.user_session_path %>" class="btn-big">
109
109
  <div class="panel radius callout" align="center">
110
110
  <strong><%= _("Sign In") %></strong>
111
111
  </div>
@@ -18,5 +18,5 @@
18
18
  # -----------------------------------------------------------------------------
19
19
 
20
20
  module Faalis
21
- VERSION = "0.14.2"
21
+ VERSION = "0.14.3"
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faalis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.2
4
+ version: 0.14.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sameer Rahmani