Skip to content

Commit 9a3d641

Browse files
committed
update
1 parent b5512fa commit 9a3d641

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

api.include.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7896,8 +7896,8 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
78967896
if ($method == 'POST' && in_array($path, ['login', 'register', 'password'])) {
78977897
$body = $request->getParsedBody();
78987898
$usernameFormFieldName = $this->getProperty('usernameFormField', 'username');
7899-
$passwordFormFieldName = $this->getProperty('passwordFormField', 'username');
7900-
$newPasswordFormFieldName = $this->getProperty('newPasswordFormField', 'username');
7899+
$passwordFormFieldName = $this->getProperty('passwordFormField', 'password');
7900+
$newPasswordFormFieldName = $this->getProperty('newPasswordFormField', 'newPassword');
79017901
$username = isset($body->usernameFormFieldName) ? $body->usernameFormFieldName : '';
79027902
$password = isset($body->passwordFormFieldName) ? $body->passwordFormFieldName : '';
79037903
$newPassword = isset($body->newPasswordFormFieldName) ? $body->newPasswordFormFieldName : '';

api.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7896,8 +7896,8 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
78967896
if ($method == 'POST' && in_array($path, ['login', 'register', 'password'])) {
78977897
$body = $request->getParsedBody();
78987898
$usernameFormFieldName = $this->getProperty('usernameFormField', 'username');
7899-
$passwordFormFieldName = $this->getProperty('passwordFormField', 'username');
7900-
$newPasswordFormFieldName = $this->getProperty('newPasswordFormField', 'username');
7899+
$passwordFormFieldName = $this->getProperty('passwordFormField', 'password');
7900+
$newPasswordFormFieldName = $this->getProperty('newPasswordFormField', 'newPassword');
79017901
$username = isset($body->usernameFormFieldName) ? $body->usernameFormFieldName : '';
79027902
$password = isset($body->passwordFormFieldName) ? $body->passwordFormFieldName : '';
79037903
$newPassword = isset($body->newPasswordFormFieldName) ? $body->newPasswordFormFieldName : '';

0 commit comments

Comments
 (0)