Skip to content
This repository has been archived by the owner on Oct 6, 2021. It is now read-only.

Commit

Permalink
Empty strings are invalid values
Browse files Browse the repository at this point in the history
  • Loading branch information
paragonie-security committed Jun 28, 2016
1 parent e0695e7 commit eeceed9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cabin/Bridge/Landing/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ protected function processBoard(array $post = [])
{
$state = State::instance();

if (!\Airship\all_keys_exist(['username', 'passphrase'], $post)) {
if (empty($post['username']) || empty($post['passphrase'])) {
$this->lens(
'board',
[
Expand Down Expand Up @@ -506,7 +506,7 @@ protected function processLogin(array $post = [])
{
$state = State::instance();

if (!\Airship\all_keys_exist(['username', 'passphrase'], $post)) {
if (empty($post['username']) || empty($post['passphrase'])) {
$this->lens('login', [
'post_response' => [
'message' => \__('Please fill out the form entirely'),
Expand Down

0 comments on commit eeceed9

Please sign in to comment.