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