CustomerLogin
class CustomerLogin extends CustomerLogin
Customer login form for the API.
Class CustomerLogin
Constants
DEFAULT_TIME_TO_WAIT |
|
DEFAULT_ATTEMPTS |
|
Methods
No description
Return true if the given field value is defined only in the HTML template, and its value is defined in the template file, not the form builder.
Returns the absolute URL to redirect the user to if the form is not successfully processed, using the 'error_url' form parameter value
Returns the absolute URL to redirect the user to if the form is successfully processed.
Build an absolute URL using the value of a form parameter.
Set the error message related to global form error
Override this method if you don't want to use the standard name, which is created from the full class name.
If the user select "Yes, I have a password", we check the password.
If the user select "I'am a new customer", we make sure is email address does not exit in the database.
No description
Details
in
BaseForm at line 115
__construct(
Request $request,
string $type = 'form',
array $data = array(),
array $options = array(),
ContainerInterface $container = null)
in
BaseForm at line 213
initFormWithContainer($type, $data, $options)
in
BaseForm at line 243
FormBuilderInterface
getFormBuilder()
in
BaseForm at line 251
string
getType()
in
BaseForm at line 265
bool
isTemplateDefinedHiddenField(
FormView $fieldView)
Return true if the given field value is defined only in the HTML template, and its value is defined in the template file, not the form builder.
Thus, it should not be included in the form hidden fields generated by formhiddenfields Smarty function, to prevent it from existing twice in the form.
in
BaseForm at line 270
isTemplateDefinedHiddenFieldName($fieldName)
in
BaseForm at line 297
string
getErrorUrl(
string $default = null)
Returns the absolute URL to redirect the user to if the form is not successfully processed, using the 'error_url' form parameter value
in
BaseForm at line 305
bool
hasErrorUrl()
in
BaseForm at line 317
string
getSuccessUrl(
string $default = null)
Returns the absolute URL to redirect the user to if the form is successfully processed.
using the 'success_url' form parameter value
in
BaseForm at line 325
bool
hasSuccessUrl()
in
BaseForm at line 337
string
getFormDefinedUrl(
string $parameterName,
string $default = null)
Build an absolute URL using the value of a form parameter.
in
BaseForm at line 352
createView()
in
BaseForm at line 363
FormView
getView()
in
BaseForm at line 380
$this
setError(
boolean $has_error = true)
Set the error status of the form.
in
BaseForm at line 392
boolean
hasError()
Get the cuirrent error status of the form.
in
BaseForm at line 403
$this
setErrorMessage(
string $message)
Set the error message related to global form error
in
BaseForm at line 416
string
getErrorMessage()
Get the form error message.
in
BaseForm at line 424
Form
getForm()
in
BaseForm at line 432
bool
hasContainer()
at line 35
string
getName()
Override this method if you don't want to use the standard name, which is created from the full class name.
in
FirewallForm at line 35
isFirewallOk($env)
in
BruteforceForm at line 28
int
getConfigTime()
in
BruteforceForm at line 33
int
getConfigAttempts()
in
FirewallForm at line 96
isFirewallActive()
in
FirewallForm at line 101
getWaitingTime()
in
CustomerLogin at line 88
verifyAccount($value,
ExecutionContextInterface $context)
If the user select "Yes, I have a password", we check the password.
in
CustomerLogin at line 108
verifyExistingEmail($value,
ExecutionContextInterface $context)
If the user select "I'am a new customer", we make sure is email address does not exit in the database.