@@ -47,7 +47,7 @@ def initialize(info = {})
47
47
48
48
register_options (
49
49
[
50
- OptString . new ( 'URIPATH ' , [ true , "The request URI" , '/users/password' ] ) ,
50
+ OptString . new ( 'TARGETURI ' , [ true , "The request URI" , '/users/password' ] ) ,
51
51
OptString . new ( 'TARGETEMAIL' , [ true , "The email address of target account" ] ) ,
52
52
OptString . new ( 'PASSWORD' , [ true , 'The password to set' ] ) ,
53
53
OptBool . new ( 'FLUSHTOKENS' , [ true , 'Flush existing reset tokens before trying' , true ] ) ,
@@ -63,7 +63,7 @@ def generate_token(account)
63
63
postdata = "user[email]=#{ account } "
64
64
65
65
res = send_request_cgi ( {
66
- 'uri' => datastore [ 'URIPATH ' ] ,
66
+ 'uri' => datastore [ 'TARGETURI ' ] ,
67
67
'method' => 'POST' ,
68
68
'data' => postdata ,
69
69
} )
@@ -107,7 +107,7 @@ def reset_one(password, report=false)
107
107
xml << "</user>"
108
108
109
109
res = send_request_cgi ( {
110
- 'uri' => datastore [ 'URIPATH ' ] || "/" ,
110
+ 'uri' => datastore [ 'TARGETURI ' ] || "/" ,
111
111
'method' => 'PUT' ,
112
112
'ctype' => 'application/xml' ,
113
113
'data' => xml ,
0 commit comments