user_mgmt 0.3.0 → 0.3.1

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.
@@ -14,7 +14,9 @@ module UserMgmt
14
14
  response = sign_up *params[:user].values
15
15
 
16
16
  if response[:status] == "200"
17
- flash[:success] = response[:body]
17
+ flash[:success] = "User was created succesfully!"
18
+ response = log_in *params[:user].values
19
+ cookies.permanent[:user_session_id] = response[:body]["session"]
18
20
  redirect_to main_app.root_path
19
21
  else
20
22
  flash[:warning] = response[:body]
@@ -1,3 +1,3 @@
1
1
  module UserMgmt
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
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: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: