user_mgmt 2.1.3 → 2.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/user_mgmt/application_helper.rb +5 -5
- data/lib/user_mgmt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43707c6b805a9f10c217afa7a681d0b63abf6704
|
4
|
+
data.tar.gz: cf6ec4fd1118294d729726dc86d483f8896c3331
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0abfd4931069b5e20364df1de964c552f1418ed2ce0416a3ae5f8b0a3b67380a6af3e1def4912017d1bf623b17e9722f117284f39b2472b53b2e9c21ce4c736a
|
7
|
+
data.tar.gz: e828a6b710b172c64896a363c5bdeaaf47fda13f674772b3e264893db04f94c1e7d9de5f26d920fe024e50a9ac03829a5620c1aa388b66d1d6aee85d3d085212
|
@@ -60,13 +60,13 @@ module UserMgmt
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def change_password user, password, new_pw, new_pw_confirm, session, host=UserMgmt.external_database_URI
|
63
|
-
send_request :
|
63
|
+
send_request :patch, :change_password, { user: user, password: password,
|
64
64
|
new_password: new_pw, new_password_confirmation: new_pw_confirm,
|
65
65
|
session: session }, host
|
66
66
|
end
|
67
67
|
|
68
68
|
def reset_password reset_token, new_pw, new_pw_confirm, host=UserMgmt.external_database_URI
|
69
|
-
send_request :
|
69
|
+
send_request :patch, :change_password, { reset_token: reset_token, new_password: new_pw,
|
70
70
|
new_password_confirmation: new_pw_confirm }, host
|
71
71
|
end
|
72
72
|
|
@@ -75,7 +75,7 @@ module UserMgmt
|
|
75
75
|
end
|
76
76
|
|
77
77
|
def change_email user, password, new_email, new_email_confirm, session, host=UserMgmt.external_database_URI
|
78
|
-
send_request :
|
78
|
+
send_request :patch, :change_email, { email: user, password: password, new_email: new_email,
|
79
79
|
new_email_confirmation: new_email_confirm, session: session }, host
|
80
80
|
end
|
81
81
|
|
@@ -92,8 +92,8 @@ module UserMgmt
|
|
92
92
|
request = Net::HTTP::Get.new(uri.request_uri << path, initheader = {'Content-Type' =>'application/json'})
|
93
93
|
when 'post'
|
94
94
|
request = Net::HTTP::Post.new(uri.request_uri << path, initheader = {'Content-Type' =>'application/json'})
|
95
|
-
when '
|
96
|
-
request = Net::HTTP::
|
95
|
+
when 'patch'
|
96
|
+
request = Net::HTTP::Patch.new(uri.request_uri << path, initheader = {'Content-Type' =>'application/json'})
|
97
97
|
when 'delete'
|
98
98
|
request = Net::HTTP::Delete.new(uri.request_uri << path, initheader = {'Content-Type' =>'application/json'})
|
99
99
|
end
|
data/lib/user_mgmt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: user_mgmt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danilo Faria, Fernando Gorodscy, Josh Leslie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sqlite3
|