Skip to content

Commit b5512fa

Browse files
committed
update
1 parent 8c23321 commit b5512fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
4545
if ($method == 'POST' && in_array($path, ['login', 'register', 'password'])) {
4646
$body = $request->getParsedBody();
4747
$usernameFormFieldName = $this->getProperty('usernameFormField', 'username');
48-
$passwordFormFieldName = $this->getProperty('passwordFormField', 'username');
49-
$newPasswordFormFieldName = $this->getProperty('newPasswordFormField', 'username');
48+
$passwordFormFieldName = $this->getProperty('passwordFormField', 'password');
49+
$newPasswordFormFieldName = $this->getProperty('newPasswordFormField', 'newPassword');
5050
$username = isset($body->usernameFormFieldName) ? $body->usernameFormFieldName : '';
5151
$password = isset($body->passwordFormFieldName) ? $body->passwordFormFieldName : '';
5252
$newPassword = isset($body->newPasswordFormFieldName) ? $body->newPasswordFormFieldName : '';

0 commit comments

Comments
 (0)