digitar duas vezes por e-mail durante o registo

Iniciado por candidosa2, 30 de Janeiro de 2009, 07:18

Tópico anterior - Tópico seguinte

0 Membros e 2 Visitantes estão a ver este tópico.

candidosa2

Themes/default/Register.template.php
Pesquisr
   // Are they allowed to hide their email?
   if ($context['allow_hide_email'])
      echo '
                     <input type="checkbox" name="hideEmail" class="check" id="hideEmail" /> <label for="hideEmail">', $txt[721], '</label>';

   echo '
                  </td>
               </tr><tr>

Adicionar
                  <td width="40%">
                     <b>Verify ', $txt[69], ':</b>
                     <div class="smalltext">This is just to make sure you didn\'t mis-type your email address...</div>
                  </td>
                  <td>
                     <input type="text" name="email2" size="30" />
                  </td>
               </tr><tr>


Sources/Register.php

Pesquisar
   if (empty($_POST['email']) || preg_match('~^[0-9A-Za-z=_+\-/][0-9A-Za-z=_\'+\-/\.]+@[\w\-]+(\.[\w\-]+)*(\.[\w]{2,6})$~', $_POST['email']) == 0)
      fatal_error(sprintf($txt[500], $_POST['user']), false);


Adicionar

   if (empty($_POST['email2']) || $_POST['email2'] != $_POST['email'])
      fatal_lang_error('Email addresses aren\'t the same.', false);