Удаляем уникальный индекс для поля client_token в таблице minecraft_access_keys

This commit is contained in:
ErickSkrauch committed 2016-10-25 02:43:27 +03:00
1 parent 945f02e4ab
commit 20b0076672
2 files changed
+16 -1

No files matched your search

@@ -69,8 +69,8 @@ class AuthenticationForm extends Form {
protected function createMinecraftAccessToken(Account $account) : MinecraftAccessKey {
/** @var MinecraftAccessKey|null $accessTokenModel */
$accessTokenModel = MinecraftAccessKey::findOne([
'client_token' => $this->clientToken,
'account_id' => $account->id,
'client_token' => $this->clientToken,
]);
if ($accessTokenModel === null) {