Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No consideration of user default value 'maildisplay' #55

Open
werwiewas opened this issue Nov 3, 2022 · 2 comments
Open

No consideration of user default value 'maildisplay' #55

werwiewas opened this issue Nov 3, 2022 · 2 comments

Comments

@werwiewas
Copy link

Hi,

the default value of 'maildisplay' for the users you can state here:
Users > User default preferences > Email display
If you create a new user this value usually written in the database.

But this value is ignored by 'auth_emailadmin'.

Moodle 4.0.4
auth_emailadmin 1.4.6

@hrimhari
Copy link
Owner

hrimhari commented Nov 3, 2022

Hi @werwiewas , could you describe what behavior you expected vs what you're experiencing?

@werwiewas
Copy link
Author

Hi @hirmhari,

... I try to explain ...

Only info, one of these values you can choose for 'maildisplay'
[
0 => Hide my email address from non-privileged users
1 => Allow everyone to see my email address
2 => Allow only other course participants to see my email address
]

Go to
Users > User default preferences > Email display
and choose for value 'defaultpreference_maildisplay':
0 => Hide my email address from non-privileged users

Go to
Plugins > Authentication > Manage Authentication
and choose for self-registration Plugin 'auth_email' (instead of 'auth_emailadmin')

Create a new user with the self-registration formular (= auth_email).

Login as administratur and call the edit formular of the new user.
The preselected value for the field 'Email display' is 'Hide my email address from non-privileged users'
CORRECT!

Go to
Plugins > Authentication > Manage Authentication
and choose for self-registration Plugin 'auth_emailadmin' (instead of 'auth_email')

Create a new user with the self-registration formular (= auth_emailadmin).

Login as administratur and call the edit formular of the new user.
The preselected value for the field 'Email display' is 'Allow only other course participants to see my email address'
WRONG!
I would expect the value 'Hide my email address from non-privileged users'

Regards

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

No branches or pull requests

2 participants