corn_starch 1.9.26 → 1.9.27

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: 7e7593fadf94584963b1aeaa2a99f08cf19a0fd1
4
- data.tar.gz: c20ea39f8aef580186c73d54caccd0f70c516f4f
3
+ metadata.gz: 5e71395bff096ada1063d702078d40830c74ac17
4
+ data.tar.gz: 15281e7a30fdc12cd41319e0a38a927008e4b9f6
5
5
  SHA512:
6
- metadata.gz: c9a63e71bfa4919dbfd8048f4e33e0f1c70116fa9e258f948092b21301daeb6b5c37ec0738de6b2bd086e151d3686785fe06df9b3cbb6bfd8e547873beda6b2b
7
- data.tar.gz: 0c006d302ddd2fa88b0440556b2bd0f5e1058ef51f894865fe2e4be1e60ab9d2c470723e78f1b1a3e5cb278a86c2b07e2a70d74af105ff5dd9e5b04763aed9a2
6
+ metadata.gz: 5188b14da292eff903395b341bde1168924d3d0f7afe5ef1f102cf05d7252d547c4b2d59321a5fbf55f8bd869c06f348703f88eb17773a3532f510aa00e09760
7
+ data.tar.gz: f09dc98e9c46cbff35ae130497b04e7f8ca6465e71680310b7ee380bf619ec7d08d7de8c86d4b32231bd629bbe440986a97be5dc5f2fa8cfe1d9f31efec1103c
@@ -23,7 +23,7 @@ module CornStarch
23
23
  # Create (Login)
24
24
  def create
25
25
  @user = user_model.find_by uid_field => params[uid_field]
26
- if @user && @user.authenticate(params[:password])
26
+ if @user && @user.authenticate(params[:password]) && (@user.respond_to?(:cs_authenticate) ? @user.try(:cs_authenticate, params) : true)
27
27
  session[:user_id] = @user.id
28
28
  session[:loaded_user_locale] = false
29
29
  I18n.locale = @user.locale
@@ -1,3 +1,3 @@
1
1
  module CornStarch
2
- VERSION = '1.9.26'
2
+ VERSION = '1.9.27'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: corn_starch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.26
4
+ version: 1.9.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eresse