Skip to content

[enh] Allow to define another attribute as primary mail source#94

Open
zamentur wants to merge 1 commit into
jonmbake:masterfrom
zamentur:enh-mail-sources
Open

[enh] Allow to define another attribute as primary mail source#94
zamentur wants to merge 1 commit into
jonmbake:masterfrom
zamentur:enh-mail-sources

Conversation

@zamentur

Copy link
Copy Markdown

Problem

In yunohost LDAP database, sometimes we do not want to use the first mail attribute as discourse primary mail.

Solution

Allow to configure which mail attribute use in priority for discourse primary mail (and fallback on mail if empty).

This PR update the primary mail with LDAP db at each authentication (in the current base code, it was only set at creation, and after user could edit manually the primary mail).

Note: it's a POC, we think more thinking and discussion are needed to create a good use case.

This PR extends #82

Status

Tested manually

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.

1 participant