Fixed validation removing redundant code

This commit is contained in:
Finn 2017-08-23 16:47:29 +01:00
parent 49beb3037d
commit 6f01bf2661
3 changed files with 87 additions and 90 deletions

View file

@ -102,7 +102,6 @@ sub post_register{
}
elsif ($usertype eq 'organisation') {
my $fullAddress = $validation->param('fulladdress');
$c->schema->txn_do( sub {
$c->schema->resultset('AccountToken')->find({

View file

@ -148,7 +148,6 @@ sub post_account_update {
}
elsif ( defined $user->organisation_id ) {
my $fullAddress = $validation->param('fulladdress');
$c->schema->txn_do( sub {
$user->organisation->update({

View file

@ -294,7 +294,6 @@ $testJson = {
'email' => 'org@org.com',
'postcode' => 'LA1 1AA',
'password' => 'Meh',
'fulladdress' => 'mary lane testing....'
};
$t->post_ok('/api/register' => json => $testJson)
->status_is(400)