Skip to content

Conversation

@K-os
Copy link

@K-os K-os commented Feb 11, 2025

Fixes: #12

Changes proposed in this pull request:
When a user logs in for the first time using the IMAP backend and the username looks like an email address (contains '@'), the Nextcloud user's email address is set accordingly. This can be configured with a seventh parameter to the IMAP backend config.

@K-os
Copy link
Author

K-os commented Feb 11, 2025

Oh sorry. I just realized this is kind of a duplicate of #263 with two differences:

  • Here $createduser->setSystemEMailAddress($email) is called, whereas Add email with IMAP backend #263 uses $config->setUserValue( $uid, 'settings', 'email', $email);. I don't know if this makes any difference.
  • This PR adds a config parameter for the IMAP backend.

If none of these differences matter, feel free to close this PR.

When the login username looks like an email address (contains '@'), the
Nextcloud user's email address is set accordingly. This can be configured
with a seventh parameter to the IMAP backend config.
This only happens on first login of a user (equivalent to the group
feature).

Signed-off-by: Gabriel Hege <[email protected]>
@K-os K-os force-pushed the feat/imap_set_user_email branch from befa7bf to 68dd427 Compare April 14, 2025 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatically set user email and display name

1 participant