user_mgmt 2.1.2 → 2.1.3
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.
- checksums.yaml +4 -4
- data/app/controllers/user_mgmt/sessions_controller.rb +11 -3
- data/lib/user_mgmt/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: 0c8acde87c52f85cc57e6b1b300fdbfc76e8d931
|
4
|
+
data.tar.gz: 24fccaa756037319f1cefec71c2ef92494e87636
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 712c53bd73a0b1f72c12d8f84e9749d745da46356c7860cc028885aa4f006abf08ff8a549bea7c58dff4eb40c6b7c154fe50d0ce828a57480e7fa688ec298545
|
7
|
+
data.tar.gz: 02a3d39856adfbfe9a8d33aa1f22da856ff3c45c544de4a595bd35ec5d6c1e55b65ad0a4194ebe1593c79bbb2e522483913278697db018b9391cbefaa6675cde
|
@@ -56,11 +56,15 @@ module UserMgmt
|
|
56
56
|
if @umid
|
57
57
|
redirect_to main_app.root_path, flash: { error: "User already signed up for the app!" }
|
58
58
|
else
|
59
|
-
|
59
|
+
cookies[:user_session_id] = {
|
60
|
+
value: response[:body]["session"],
|
61
|
+
expires: 1.hour.from_now,
|
62
|
+
domain: ".stewardly.ca"
|
63
|
+
}
|
60
64
|
redirect_to main_app.root_path, flash: { success: "User logged in!" }
|
61
65
|
end
|
62
66
|
elsif @umid
|
63
|
-
add_strategy @uid, @provider, @umid,
|
67
|
+
add_strategy @uid, @provider, @umid, cookies[:user_session_id]
|
64
68
|
redirect_to main_app.root_path, flash: { success: "Strategy added successfully!" }
|
65
69
|
end
|
66
70
|
|
@@ -76,7 +80,11 @@ module UserMgmt
|
|
76
80
|
redirect_to sign_up_path, flash: { error: response[:body] }
|
77
81
|
else
|
78
82
|
response = log_in_oauth params["uid"], params["provider"].to_sym
|
79
|
-
|
83
|
+
cookies[:user_session_id] = {
|
84
|
+
value: response[:body]["session"],
|
85
|
+
expires: 1.hour.from_now,
|
86
|
+
domain: ".stewardly.ca"
|
87
|
+
}
|
80
88
|
redirect_to main_app.root_path, flash: { success: "User logged in!" }
|
81
89
|
end
|
82
90
|
|
data/lib/user_mgmt/version.rb
CHANGED