0

I might need to hack Importer to make it allow importing members without requiring an email. Is it even possible ?

(related to this question)

1 Answer 1

1

Hrmm. I think the first-party member module really depends on having an email address for an account, and really scanning through it to modify it is both a very bad practice and impractical. What I would suggest is generating dummy email addresses for your source file using a GUID for both the localpart and the domain, making it a statistical extreme that their is any collision between your fake addresses and real ones.

However, this does beg the question; How will you update these email addresses when the time comes? These are websites we're talking about, and I'm not sure but how does Importer deal with passwords? Do you have the passwords in plain text? If not, every imported user is probably going to need to use the EE password reset functionality, meaning they'll need a valid email address (or you go through and set temporary passwords you share with them, on a case by case request).

Edit

Based on your comments, your major issue is a bad data set. I'm assuming you are tasked with doing a recovery for someone, otherwise you need tell them you need valid data or no-dice. I looked, and Importer has no extension hooks in it, so if you are really stuck having to deal, just write your own import script. It won't be fun, but then you can do as I said; generate [email protected] (google GUID if you don't know what that is) for each row you import and use that as your email.

2
  • And the email addresses need to be unique. Plus EE already has a member import utility. ellislab.com/expressionengine/user-guide/cp/tools/utilities/…
    – Jim Wyse
    Commented Oct 8, 2015 at 15:30
  • My problem is I can't trust the import for valid email data as the CSV is full of invalid data. So as the email is needed by EE (password recovery) I need to manually set emails in the CP. when cron is launched data is corrupted again. So I need to import everything but the emails...
    – laurent
    Commented Oct 8, 2015 at 16:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.