26 lines
578 B
PHP
26 lines
578 B
PHP
<?php
|
|
$login_fields = [
|
|
'method' => 'post',
|
|
'action' => 'process.php?action=login',
|
|
'login_username' => [
|
|
'label' => 'username',
|
|
'type' => 'text',
|
|
'placeholder' => 'e.g., jsmith',
|
|
'validators' => [
|
|
'no_spaces',
|
|
'check_sql',
|
|
],
|
|
],
|
|
'login_password' => [
|
|
'label' => 'password',
|
|
'type' => 'password',
|
|
'placeholder' => '',
|
|
'validators' => [
|
|
'no_spaces',
|
|
'pw_strength',
|
|
'no_backslash',
|
|
'check_sql',
|
|
],
|
|
],
|
|
];
|