File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,13 @@ public function login($params = array())
159159 $ to [] = htmlspecialchars ($ params ['clID ' ]);
160160 $ from [] = '/{{ pwd }}/ ' ;
161161 $ to [] = htmlspecialchars ($ params ['pw ' ]);
162+ if (isset ($ params ['newpw ' ]) && !empty ($ params ['newpw ' ])) {
163+ $ from [] = '/{{ newpw }}/ ' ;
164+ $ to [] = PHP_EOL . ' <newPW> ' . htmlspecialchars ($ params ['newpw ' ]) . '</newPW> ' ;
165+ } else {
166+ $ from [] = '/{{ newpw }}/ ' ;
167+ $ to [] = '' ;
168+ }
162169 $ from [] = '/{{ clTRID }}/ ' ;
163170 $ microtime = str_replace ('. ' , '' , round (microtime (1 ), 3 ));
164171 $ to [] = htmlspecialchars ($ params ['prefix ' ] . '-login- ' . $ microtime );
@@ -169,7 +176,7 @@ public function login($params = array())
169176 <command>
170177 <login>
171178 <clID>{{ clID }}</clID>
172- <pw>{{ pwd }}</pw>
179+ <pw>{{ pwd }}</pw>{{ newpw }}
173180 <options>
174181 <version>1.0</version>
175182 <lang>en</lang>
You can’t perform that action at this time.
0 commit comments