cleanup and sync
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
$create_account_fields = [
|
||||
'method' => 'post',
|
||||
'action' => 'process.php?action=create_account',
|
||||
'create_account_username' => [
|
||||
'label' => 'username',
|
||||
'type' => 'text',
|
||||
'placeholder' => 'e.g., jsmith',
|
||||
'validators' => [
|
||||
'no_spaces',
|
||||
'check_sql',
|
||||
],
|
||||
],
|
||||
'create_account_first_name' => [
|
||||
'label' => 'first name',
|
||||
'type' => 'text',
|
||||
'placeholder' => 'e.g., John',
|
||||
'validators' => [
|
||||
'no_spaces',
|
||||
'only_letters',
|
||||
'check_sql',
|
||||
],
|
||||
],
|
||||
'create_account_last_name' => [
|
||||
'label' => 'last name',
|
||||
'type' => 'text',
|
||||
'placeholder' => 'e.g., Smith',
|
||||
'validators' => [
|
||||
'no_spaces',
|
||||
'only_letters',
|
||||
'check_sql',
|
||||
],
|
||||
],
|
||||
'create_account_email' => [
|
||||
'label' => 'email address',
|
||||
'type' => 'text',
|
||||
'placeholder' => 'e.g., jsmith@email.com',
|
||||
'validators' => [
|
||||
'valid_email',
|
||||
'check_sql',
|
||||
],
|
||||
],
|
||||
'create_account_password' => [
|
||||
'label' => 'password',
|
||||
'type' => 'password',
|
||||
'placeholder' => '',
|
||||
'validators' => [
|
||||
'no_spaces',
|
||||
'pw_strength',
|
||||
'no_backslash',
|
||||
'check_sql',
|
||||
],
|
||||
],
|
||||
'verify_create_account_password' => [
|
||||
'label' => 'password',
|
||||
'type' => 'password',
|
||||
'placeholder' => '',
|
||||
'validators' => [
|
||||
'no_spaces',
|
||||
'pw_strength',
|
||||
'no_backslash',
|
||||
'check_sql',
|
||||
],
|
||||
],
|
||||
];
|
||||
@@ -8,7 +8,7 @@ $login_fields = [
|
||||
'placeholder' => 'e.g., jsmith',
|
||||
'validators' => [
|
||||
'no_spaces',
|
||||
// 'check_sql',
|
||||
'check_sql',
|
||||
],
|
||||
],
|
||||
'login_password' => [
|
||||
@@ -17,9 +17,9 @@ $login_fields = [
|
||||
'placeholder' => '',
|
||||
'validators' => [
|
||||
'no_spaces',
|
||||
// 'pw_strength',
|
||||
// 'no_backslash',
|
||||
// 'check_sql',
|
||||
'pw_strength',
|
||||
'no_backslash',
|
||||
'check_sql',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user