This topic is locked

Add one more field in the login - Agregar campo en el login

10/23/2015 07:31:22
PHPRunner General questions
crodrigof author

[size="5"][size="4"]Hello everyone, good day.
The issue is that for other functions, if enabled the ability to add fields, but for the login is disabled.
[size="5"]This is a problem in the software ?.
Is there any way to fix it ?.
Does anyone have an idea how to fix this.?[/size]
Thanks.
Español:
El tema es que para otras funcionalidades, si esta activa la posibilidad de agregar campos, pero para el login esta inhabilitado.
Esto es un problema en el software?.

Hay forma de solucionarlo ?
¿Alguien tiene una idea de como solucionar esto.?
Gracias.[/size][/size]

Sergey Kornilov admin 10/23/2015

Login page and regular Add/Edit pages serve different purposes. Adding new field to Add/Edit page is straightforward, PHPRunner knows what to do with that field when form is submitted, it will be simply saved in the database.
Login page is different, it servers a very specific purpose. If you need to add a new field you need to do this manually in Visual Editor in HTML mode i.e.

<input type="text" name="account">


Then you need to add your code to one of events like BeforeLogin to do something with this field value.