corn_starch 1.9.23 → 1.9.24
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 -0
- 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: 43dd7552bd8566fd98f2bd5b68c6dbb93d2b5a0a
|
4
|
+
data.tar.gz: b95b468f9675131a1ae1e9cd13e08fcf5ec55f6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fea378f6092266dcff04256ed2328be4c064012e510b9ad56615b5b0d43dd11acffb52de0cddb4233b44ea5338eca08c503fead76a4ac83868d0aeb82978b6b
|
7
|
+
data.tar.gz: 6fd3e5d8dbc2e63898d5b11c2803b2a1efceb21738a9cf8fec4b46580dd3826415d9aab589ab39e8f146bda14ec16525e26b092908875a3cf526e4baa87b2caf
|
@@ -25,6 +25,7 @@ module CornStarch
|
|
25
25
|
@user = user_model.find_by uid_field => params[uid_field]
|
26
26
|
if @user && @user.authenticate(params[:password])
|
27
27
|
session[:user_id] = @user.id
|
28
|
+
I18n.locale = @user.try :locale
|
28
29
|
redirect_to :back, notice: notice_msg(nil, nil, :login, :pass)
|
29
30
|
else
|
30
31
|
flash.now[:alert] = notice_msg(nil, nil, :login, :fail)
|
data/lib/corn_starch/version.rb
CHANGED