|
@@ -34,6 +34,7 @@ if($submit) {
|
|
|
$user->bank_account_number = http::value("bank_account_number", "trim");
|
|
$user->bank_account_number = http::value("bank_account_number", "trim");
|
|
|
$user->paypal_email = http::value("paypal_email", "email");
|
|
$user->paypal_email = http::value("paypal_email", "email");
|
|
|
|
|
|
|
|
|
|
+ if($password && !User::validatePassword($password)) $form_exception->addError("Password must be at least 6 characters in length and contain at least one lowercase, uppercase, number and special character.");
|
|
|
if(empty($user->email)) $form_exception->addError("Email address is invalid.");
|
|
if(empty($user->email)) $form_exception->addError("Email address is invalid.");
|
|
|
if(empty($user->title)) $form_exception->addError("Title is required.");
|
|
if(empty($user->title)) $form_exception->addError("Title is required.");
|
|
|
if(empty($user->first_name)) $form_exception->addError("First name is required.");
|
|
if(empty($user->first_name)) $form_exception->addError("First name is required.");
|