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 +4 -4
- data/app/controllers/corn_starch/sessions_controller.rb +1 -1
- data/lib/corn_starch/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e71395bff096ada1063d702078d40830c74ac17
|
4
|
+
data.tar.gz: 15281e7a30fdc12cd41319e0a38a927008e4b9f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/corn_starch/version.rb
CHANGED