Skip to content

Commit

Permalink
Bugfix username- & email-login combination
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Schendel committed Feb 28, 2023
1 parent 07a5f72 commit f0a6ee8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AppApi.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static function getModuleInfo() {
return [
'title' => 'AppApi',
'summary' => 'Module to create a REST API with ProcessWire',
'version' => '1.2.8',
'version' => '1.2.9',
'author' => 'Sebastian Schendel',
'icon' => 'terminal',
'href' => 'https://modules.processwire.com/modules/app-api/',
Expand Down
2 changes: 1 addition & 1 deletion classes/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function ___doLogin($data) {
}

if (
!$loggedIn &&
(!$user || !$user->id) &&
in_array($accessMethod, ['email-password', 'any-password']) &&
in_array('logintypeEmailPassword', $allowedLoginTypes)
) {
Expand Down

0 comments on commit f0a6ee8

Please sign in to comment.