Lines 757-763
sub AddMember {
Link Here
|
757 |
|
757 |
|
758 |
# create a disabled account if no password provided |
758 |
# create a disabled account if no password provided |
759 |
$data{'password'} = ($data{'password'})? hash_password($data{'password'}) : '!'; |
759 |
$data{'password'} = ($data{'password'})? hash_password($data{'password'}) : '!'; |
|
|
760 |
|
761 |
# we don't want invalid dates in the db (mysql has a bad habit of inserting 0000-00-00 |
760 |
$data{'dateofbirth'} = undef if( not $data{'dateofbirth'} ); |
762 |
$data{'dateofbirth'} = undef if( not $data{'dateofbirth'} ); |
|
|
763 |
$data{'debarred'} = undef if ( not $data{'debarred'} ); |
761 |
|
764 |
|
762 |
# get only the columns of Borrower |
765 |
# get only the columns of Borrower |
763 |
my @columns = $schema->source('Borrower')->columns; |
766 |
my @columns = $schema->source('Borrower')->columns; |
764 |
- |
|
|