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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b522094126b51a1e9674345eea99d8e07455e94
4
- data.tar.gz: 5835864fe0a99a172c9bfd7c25f23a2f94006c44
3
+ metadata.gz: 0c8acde87c52f85cc57e6b1b300fdbfc76e8d931
4
+ data.tar.gz: 24fccaa756037319f1cefec71c2ef92494e87636
5
5
  SHA512:
6
- metadata.gz: 87620c6ebc153d43350cfbcec3b0cf0c15b0e0b8c63189a86acb9df54f68a31404a3363eab40ce8226dc5a31e06d7bb54a60afbd3afe0548b735ad2af35f9680
7
- data.tar.gz: f85f8ed2ebe6412520475e43d56f59b55d704cae46658572448cb6c9f2aa4ae21ebee434e36afee416186d999638445ed6789b8838e5ba4ecc6073815fe0efb8
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
- session[:user_session_id] = response[:body]["session"]
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, session[:user_session_id]
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
- session[:user_session_id] = response[:body]["session"]
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
 
@@ -1,3 +1,3 @@
1
1
  module UserMgmt
2
- VERSION = "2.1.2"
2
+ VERSION = "2.1.3"
3
3
  end
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: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danilo Faria, Fernando Gorodscy, Josh Leslie