General developer forum

Create multiple custom login pages

Picture of Rafael Roijackers
Create multiple custom login pages


We have some customers that wants to have their own login page. I've created a page with the following form:

<form id="form" name="form" action="/login/index.php" ENCTYPE=x-www-form-urlencoded METHOD="POST">

<span class="small">Vul uw e-mailadres in:</span>
<input type="text" name="username" id="name" required />

<span class="small">Vul uw wachtwoord in:</span>
<input type="password" name="password" id="password" required />

<button type="submit">Inloggen</button>

the labels arte translated in dutch. I have a few questions.

1. When the fill in a wrong username/password, the user will be redirected to our normal login page. Is it possible to let them stay on their own login page?

2. Is there also a form that they can request a new password? So I can place this form on the same page?

3. Do I need anything to secure these forms? Can someone help me with doing this?

Average of ratings: -