Skip to content

Commit

Permalink
JWTの追加
Browse files Browse the repository at this point in the history
  • Loading branch information
take64 committed Sep 15, 2020
1 parent b49527d commit baef9c9
Show file tree
Hide file tree
Showing 7 changed files with 568 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

namespace Citrus;

use Citrus\Authentication\Database;
use Citrus\Authentication\AuthItem;
use Citrus\Authentication\Database;
use Citrus\Authentication\Protocol;
use Citrus\Configure\Configurable;
use Citrus\Database\Connection\Connection;
Expand Down
2 changes: 1 addition & 1 deletion src/Authentication/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function __construct(Connection $connection)
public function authorize(AuthItem $item): bool
{
// ログインID、パスワード のどちらかが null もしくは 空文字 だった場合は認証失敗
if (true === Strings::isEmpty($item->user_id) || true === Strings::isEmpty($item->password))
if (true === Strings::isEmpty($item->user_id) or true === Strings::isEmpty($item->password))
{
return false;
}
Expand Down
Loading

0 comments on commit baef9c9

Please sign in to comment.