Comments

sunchaser’s picture

true that !
subscribing

harrrrrrr’s picture

any news on this?

darrellduane’s picture

Assigned: Unassigned » darrellduane

I've done this, patch file coming shortly.

darrellduane’s picture

Status: Active » Needs review
StatusFileSize
new13.28 KB

Here's a patch file. I've added a status of "off" in addition to automatic and manual checking since people may want only one or the other check to be performed. There is one very small bug. If the username is invalid, the status icon for the email check doesn't appear in quite the right place. If someone who is good with CSS could figure out the thing to fix so that it moves where it belongs, that'd be helpful.

Let me know if you find any other issues with this.

YK85’s picture

+1 subscribing - this feature would be awesome!

baljit-1’s picture

m new to drupal and want to know how to add patch to my website?

darrellduane’s picture

see http://drupal.org/node/620014

Search on google for more information

dublin drupaller’s picture

great patch (#4 darrell). works well.

rafamd’s picture

Logintoboggan module allows adding a second e-mail field (for verification). Checking if that field is present and then checking if the two e-mails are the same could be a nice plus :) for those of us using that module

rafa

hellomobe’s picture

I'd like to also add this is for a text field. I'm following the pattern, but not sure how to $_get the value of the field.

function siteurlCheck(siteField){
//Drupal.siteurlCheck = function(siteField) {
  clearTimeout(Drupal.siteurlCheckTimer);
  Drupal.siteurlCheck = siteField.val();
  
  $.ajax({
    url: Drupal.settings.siteurlCheck.ajaxUrlfield-site-url-und-0-value, //not sure if this is right
    data: {field-site-url-und-0-value: Drupal.siteurlCheck}, //not sure if this right
    dataType: 'json',
  ...

What field name do I use as the $_GET['?????'] value in the check.unique.inc file

hellomobe’s picture

Was able to get it sorted out.

You should be able to leave the url same as the original file.

The GET value is how it is defined in the js file => ajax call data: {anyname: Drupal.siteurlCheck} and then in the unique.inc file => $_GET['anyname'];

Here are the files. http://drupal.org/node/1399360

darrellduane’s picture

Version: 6.x-1.5 » 7.x-1.x-dev
StatusFileSize
new9.48 KB

Here is a patch to support the 7.x version of this module.

It includes new administrative options to enable or disable checking for preexisting versions of both the username and the e-mail address in the system so that this patch can be incorporated in to the existing module without disrupting anyone's use of it who doesn't want duplicate e-mail address checking.

It also includes user interface language enhancements to better instruct the user how to proceed if a pre-existing username or e-mail address is found.

darrellduane’s picture

I've incorporated the requested changes requested in: https://drupal.org/node/1114984 and in https://drupal.org/node/1508198 & https://drupal.org/node/1440726 into this latest version of the patch. It checks to see if we are using the current users's username so that the UX is clean.

darrellduane’s picture

This is to prompt testing of this patch. this is the same patch file.

  • Commit 9721d11 on 7.x-1.x by DarrellDuane:
    Issue #764332 by DarrellDuane:  Provide check of e-mail addresses
    
darrellduane’s picture

Issue summary: View changes
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.