mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Fixed social auth login audit log messages
Was logging the whole social account instance instead of just the method. Updated tests to cover. Fixes #2930
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
namespace Tests\Auth;
|
||||
|
||||
use BookStack\Actions\ActivityType;
|
||||
use BookStack\Auth\SocialAccount;
|
||||
use BookStack\Auth\User;
|
||||
use DB;
|
||||
@ -82,6 +83,7 @@ class SocialAuthTest extends TestCase
|
||||
]);
|
||||
$resp = $this->followingRedirects()->get('/login/service/github/callback');
|
||||
$resp->assertDontSee('login-form');
|
||||
$this->assertActivityExists(ActivityType::AUTH_LOGIN, null, 'github; (' . $this->getAdmin()->id . ') ' . $this->getAdmin()->name);
|
||||
}
|
||||
|
||||
public function test_social_account_detach()
|
||||
|
Reference in New Issue
Block a user