Jump to content

How to make an error come up when someone uses an already registered email


connbob

Recommended Posts

Hey,

I am wondering how I make an error come up if you enter an email that has already been used.

I am guessing you need to make a class with the $ symbol?

Conn

Also, if it is possible to do with this code here, could you please help me with it, since that is the code I guess I need to change

<dt>Email Address: *</dt>
<dd><input type="text" name="email" value="<?php echo Vars::POST('email');?>" />
 <?php
  if($email_error == true)
   echo '<p class="error">Please enter your email address</p>';
 ?>
</dd>

Link to comment
Share on other sites

  • Administrators

This feature is already in place and redirects the registrant to an error page with the email in use message.

In registration.php;

$ret = RegistrationData::CheckUserEmail($data['email']);

  if($ret)
  {
   $this->set('error', Lang::gs('email.inuse'));
   $this->render('registration_error.tpl');
   return false;
  }

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...