user_mgmt 0.5.10 → 0.5.12
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.
|
@@ -2,19 +2,18 @@ module UserMgmt
|
|
|
2
2
|
module ApplicationHelper
|
|
3
3
|
|
|
4
4
|
def user_logged_in?
|
|
5
|
-
return
|
|
6
|
-
status = user_info(cookies[:user_session_id])[:status]
|
|
7
|
-
if status == 200
|
|
8
|
-
|
|
9
|
-
else
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
end
|
|
5
|
+
return cookies[:user_session_id] != nil
|
|
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
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
def current_user
|
|
16
|
-
|
|
17
|
-
@current_user ||= user_info(cookies[:user_session_id])[:body]
|
|
16
|
+
@current_user ||= user_info(cookies[:user_session_id])[:body] unless cookies[:user_session_id] == nil
|
|
18
17
|
end
|
|
19
18
|
|
|
20
19
|
def sign_up email, password, password_confirmation, host=UserMgmt.external_database_URI
|
data/lib/user_mgmt/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: user_mgmt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.12
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-08-
|
|
12
|
+
date: 2013-08-28 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: sqlite3
|