I have a model LoginForm with 2 fields username and password. And have 2 points of login. First it’s basic (site/login) with 2 input fields which has name attributes username and password respectively. Second point it’s (site/index) which have 3 input fields with code, phone, password name attributes. I need somelike glue code and phone in username and send just username and password to my model.
How can I do this? Or maybe need extend from my LoginForm with code,phone inputs?
In loginForm add additional variables public $code and public $phone then you can manipulate $code $phone in view like other variables from loginForm ($password, $username). So after submit you pass data in $code and $phone do something with these to prepare data for $username and after validation save it to data base.