Skip to content

Commit 2dfb719

Browse files
authored
Update UaEpp.php
1 parent b8be248 commit 2dfb719

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Registries/UaEpp.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)