Skip to content

Commit 618765b

Browse files
committed
Fix incorrect env key
1 parent 5335183 commit 618765b

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All Notable changes to `StageFront` will be documented in this file.
44

5+
## 2.0.1 (2020-01-01)
6+
7+
- Fix incorrect env key
8+
59
## 2.0.0 (2020-01-01)
610

711
- Drop support for PHP 7.0

src/Commands/SetCredentials.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function handle(DotEnvUpdater $updater)
4141

4242
$updater->set('STAGEFRONT_LOGIN', $username);
4343
$updater->set('STAGEFRONT_PASSWORD', $password);
44-
$updater->set('STAGEFRONT_ENCRYPT', $encrypt);
44+
$updater->set('STAGEFRONT_ENCRYPTED', $encrypt);
4545

4646
$this->info("StageFront credentials were written to [.env].");
4747
}

tests/Commands/SetCredentialsTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public function it_sets_unencrypted_credentials()
1212

1313
$this->assertEquals('admin', $this->updater->get('STAGEFRONT_LOGIN'));
1414
$this->assertEquals('abc123', $this->updater->get('STAGEFRONT_PASSWORD'));
15-
$this->assertFalse($this->updater->get('STAGEFRONT_ENCRYPT'));
15+
$this->assertFalse($this->updater->get('STAGEFRONT_ENCRYPTED'));
1616
}
1717

1818
/** @test */
@@ -24,7 +24,7 @@ public function it_sets_encrypted_credentials_with_option()
2424
$this->assertEquals('admin', $this->updater->get('STAGEFRONT_LOGIN'));
2525
$this->assertNotEquals('abc123', $this->updater->get('STAGEFRONT_PASSWORD'));
2626
$this->assertNotEmpty($this->updater->get('STAGEFRONT_PASSWORD'));
27-
$this->assertTrue($this->updater->get('STAGEFRONT_ENCRYPT'));
27+
$this->assertTrue($this->updater->get('STAGEFRONT_ENCRYPTED'));
2828
}
2929

3030
/** @test */
@@ -39,7 +39,7 @@ public function it_asks_for_credentials_and_does_not_encrypt_the_password()
3939

4040
$this->assertEquals('admin', $this->updater->get('STAGEFRONT_LOGIN'));
4141
$this->assertEquals('abc123', $this->updater->get('STAGEFRONT_PASSWORD'));
42-
$this->assertFalse($this->updater->get('STAGEFRONT_ENCRYPT'));
42+
$this->assertFalse($this->updater->get('STAGEFRONT_ENCRYPTED'));
4343
}
4444

4545
/** @test */
@@ -55,7 +55,7 @@ public function it_asks_for_credentials_and_encrypts_the_password()
5555
$this->assertEquals('admin', $this->updater->get('STAGEFRONT_LOGIN'));
5656
$this->assertNotEquals('abc123', $this->updater->get('STAGEFRONT_PASSWORD'));
5757
$this->assertNotEmpty($this->updater->get('STAGEFRONT_PASSWORD'));
58-
$this->assertTrue($this->updater->get('STAGEFRONT_ENCRYPT'));
58+
$this->assertTrue($this->updater->get('STAGEFRONT_ENCRYPTED'));
5959
}
6060

6161
/** @test */
@@ -72,7 +72,7 @@ public function username_can_not_be_empty()
7272

7373
$this->assertEquals('admin', $this->updater->get('STAGEFRONT_LOGIN'));
7474
$this->assertEquals('abc123', $this->updater->get('STAGEFRONT_PASSWORD'));
75-
$this->assertFalse($this->updater->get('STAGEFRONT_ENCRYPT'));
75+
$this->assertFalse($this->updater->get('STAGEFRONT_ENCRYPTED'));
7676
}
7777

7878
/** @test */
@@ -89,7 +89,7 @@ public function password_can_not_be_empty()
8989

9090
$this->assertEquals('admin', $this->updater->get('STAGEFRONT_LOGIN'));
9191
$this->assertEquals('abc123', $this->updater->get('STAGEFRONT_PASSWORD'));
92-
$this->assertFalse($this->updater->get('STAGEFRONT_ENCRYPT'));
92+
$this->assertFalse($this->updater->get('STAGEFRONT_ENCRYPTED'));
9393
}
9494

9595
/** @test */
@@ -107,7 +107,7 @@ public function password_should_be_retyped_correctly()
107107

108108
$this->assertEquals('admin', $this->updater->get('STAGEFRONT_LOGIN'));
109109
$this->assertEquals('abc123', $this->updater->get('STAGEFRONT_PASSWORD'));
110-
$this->assertFalse($this->updater->get('STAGEFRONT_ENCRYPT'));
110+
$this->assertFalse($this->updater->get('STAGEFRONT_ENCRYPTED'));
111111
}
112112

113113
/** @test */
@@ -121,7 +121,7 @@ public function it_asks_for_a_password_only_if_you_already_specified_a_username(
121121

122122
$this->assertEquals('admin', $this->updater->get('STAGEFRONT_LOGIN'));
123123
$this->assertEquals('abc123', $this->updater->get('STAGEFRONT_PASSWORD'));
124-
$this->assertFalse($this->updater->get('STAGEFRONT_ENCRYPT'));
124+
$this->assertFalse($this->updater->get('STAGEFRONT_ENCRYPTED'));
125125
}
126126

127127
/** @test */
@@ -135,6 +135,6 @@ public function it_does_not_ask_for_encryption_if_you_already_typed_the_option()
135135

136136
$this->assertNotEquals('abc123', $this->updater->get('STAGEFRONT_PASSWORD'));
137137
$this->assertNotEmpty($this->updater->get('STAGEFRONT_PASSWORD'));
138-
$this->assertTrue($this->updater->get('STAGEFRONT_ENCRYPT'));
138+
$this->assertTrue($this->updater->get('STAGEFRONT_ENCRYPTED'));
139139
}
140140
}

0 commit comments

Comments
 (0)