user_mgmt 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -3,14 +3,13 @@ module UserMgmt
|
|
3
3
|
|
4
4
|
def user_logged_in?
|
5
5
|
# return false if cookies[:user_session_id] == nil
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
true
|
6
|
+
status = user_info(cookies[:user_session_id])[:status]
|
7
|
+
if status == 200
|
8
|
+
return true
|
9
|
+
else
|
10
|
+
# cookies.delete(:user_session_id)
|
11
|
+
return false
|
12
|
+
end
|
14
13
|
end
|
15
14
|
|
16
15
|
def current_user
|
data/lib/user_mgmt/version.rb
CHANGED