mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
Improve auth API tests
This commit is contained in:
@@ -12,9 +12,9 @@ class ApiHelper extends \Codeception\Module
|
||||
return Factory::create('Flarum\Core\Users\User', $data);
|
||||
}
|
||||
|
||||
public function login($identifier, $password)
|
||||
public function login($identification, $password)
|
||||
{
|
||||
$this->getModule('REST')->sendPOST('/api/auth/login', ['identifier' => $identifier, 'password' => $password]);
|
||||
$this->getModule('REST')->sendPOST('/api/auth/login', ['identification' => $identification, 'password' => $password]);
|
||||
|
||||
$response = json_decode($this->getModule('REST')->grabResponse(), true);
|
||||
if ($response && is_array($response) && isset($response['token'])) {
|
||||
|
Reference in New Issue
Block a user