We have a request to not store personally identifiable info in Drupal. I see there is this code:

 if (!$drupal_user) {
      if (empty($userprofile->Email_value)) {
        $phoneid = isset($userprofile->PhoneId) ? $userprofile->PhoneId : $userprofile->ID;
        $userprofile->Email_value = $this->getRandomEmail($_SERVER['HTTP_HOST'], $phoneid);
      }

But I don't see a way to prevent the Email_value from appearing on the userprofile. It would be nice to be able to configure this in drupal.

Proposed solution:

Add a checkbox on the login radius settings "Don't save e-mail address in Drupal" which would trigger this code.

Comments

oknate created an issue. See original summary.

oknate’s picture

Here's a patch that works. I'll still need to test with registration and e-mail confirmation.

oknate’s picture

Title: Add Option to Not Store Email in Drupal. » Add Option to Not Store Email/Username in Drupal.
StatusFileSize
new4.45 KB
Sudhanshu.Agarwal’s picture

Version: 8.x-3.x-dev » 8.x-3.16
Assigned: oknate » Sudhanshu.Agarwal
Status: Active » Fixed

Hi @oknate,

This issue is fixed in version 8.x-3.16

Sudhanshu.Agarwal’s picture

Status: Fixed » Closed (fixed)