td-client 0.8.24 → 0.8.25
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +5 -0
- data/lib/td/client.rb +5 -0
- data/lib/td/client/api.rb +10 -0
- data/lib/td/client/version.rb +1 -1
- metadata +2 -2
data/ChangeLog
CHANGED
data/lib/td/client.rb
CHANGED
@@ -375,6 +375,11 @@ class Client
|
|
375
375
|
@api.change_password(user, password)
|
376
376
|
end
|
377
377
|
|
378
|
+
# => true
|
379
|
+
def change_my_password(old_password, password)
|
380
|
+
@api.change_my_password(old_password, password)
|
381
|
+
end
|
382
|
+
|
378
383
|
# => [User]
|
379
384
|
def access_controls
|
380
385
|
list = @api.list_access_controls
|
data/lib/td/client/api.rb
CHANGED
@@ -1071,6 +1071,16 @@ class API
|
|
1071
1071
|
return true
|
1072
1072
|
end
|
1073
1073
|
|
1074
|
+
# => true
|
1075
|
+
def change_my_password(old_password, password)
|
1076
|
+
params = {'old_password' => old_password, 'password' => password}
|
1077
|
+
code, body, res = post("/v3/user/password/change", params)
|
1078
|
+
if code != "200"
|
1079
|
+
raise_error("Changing password failed", res)
|
1080
|
+
end
|
1081
|
+
return true
|
1082
|
+
end
|
1083
|
+
|
1074
1084
|
|
1075
1085
|
####
|
1076
1086
|
## Access Control API
|
data/lib/td/client/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: td-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.25
|
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: 2012-
|
12
|
+
date: 2012-09-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: msgpack
|