Skip to content

Commit c6a7a4e

Browse files
committed
/URIPATH/TARGETURI/g
1 parent c7719bf commit c6a7a4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/auxiliary/admin/http/rails_devise_pass_reset.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def initialize(info = {})
4747

4848
register_options(
4949
[
50-
OptString.new('URIPATH', [ true, "The request URI", '/users/password']),
50+
OptString.new('TARGETURI', [ true, "The request URI", '/users/password']),
5151
OptString.new('TARGETEMAIL', [true, "The email address of target account"]),
5252
OptString.new('PASSWORD', [true, 'The password to set']),
5353
OptBool.new('FLUSHTOKENS', [ true, 'Flush existing reset tokens before trying', true]),
@@ -63,7 +63,7 @@ def generate_token(account)
6363
postdata="user[email]=#{account}"
6464

6565
res = send_request_cgi({
66-
'uri' => datastore['URIPATH'],
66+
'uri' => datastore['TARGETURI'],
6767
'method' => 'POST',
6868
'data' => postdata,
6969
})
@@ -107,7 +107,7 @@ def reset_one(password, report=false)
107107
xml << "</user>"
108108

109109
res = send_request_cgi({
110-
'uri' => datastore['URIPATH'] || "/",
110+
'uri' => datastore['TARGETURI'] || "/",
111111
'method' => 'PUT',
112112
'ctype' => 'application/xml',
113113
'data' => xml,

0 commit comments

Comments
 (0)