Skip to content

Commit

Permalink
Merge pull request #42 from jotafurtado/master
Browse files Browse the repository at this point in the history
Hotfix
  • Loading branch information
awkwardusername committed Apr 17, 2015
2 parents 5862973 + 5e97a81 commit dd5f3b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/Commands/GenerateApiKeyCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public function fire()

$apiKey = $apiKeyModel->where('user_id', '=', $userId)->first();

if ( ! empty($apiKey) || $apiKey->exists) {
$overwrite = $this->ask("This user already has an existing API key. Do you want to overwrite it? [y/n]");
if ($apiKey) {
$overwrite = $this->ask("This user already has an existing API key. Do you want to create another one? [y/n]");
if ($overwrite == 'n') {
return;
}
Expand Down

0 comments on commit dd5f3b3

Please sign in to comment.