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

Wrong email address, cannot change #93

Closed
kuba-orlik opened this issue Jun 10, 2020 · 5 comments
Closed

Wrong email address, cannot change #93

kuba-orlik opened this issue Jun 10, 2020 · 5 comments

Comments

@kuba-orlik
Copy link

kuba-orlik commented Jun 10, 2020

I've logged in over LDAP to a ynh version of Wekan. Upon login, I've realized that my email address is wrong - set to "undefined" domain:

image

I've tried enabling "Allow email change" in the admin settings:

image

But I can't still edit my email. This is also true for non-ldap accounts.

@fflorent
Copy link

Same issue here.

@fflorent
Copy link

fflorent commented Jun 22, 2020

I wonder if that may not be due to this issue:
wekan/ldap#57

I have several mail addresses for my main user but other users don't and have their email correctly set.

@kuba-orlik
Copy link
Author

I also have several mail addresses for my user 🤔

@fflorent
Copy link

fflorent commented Jun 22, 2020

I think I got a workaround or even a fix.

I don't warranty about the result. YOU MAY DO A BACKUP BEFORE FOLLOWING THESE STEPS.

In /var/www/wekan/.env, change this:

 # LDAP_DEFAULT_DOMAIN : The default domain of the ldap it is used to create email if the field is not map correctly with the LDAP_SYNC_USER_DATA_FIELDMAP
 # example :
 #LDAP_DEFAULT_DOMAIN=
+LDAP_DEFAULT_DOMAIN=<YOURDOMAIN.TLD>

Then you'll have to purge all users in mongo:

$ mongo
> use wekan
> db.users.find({authenticationMethod: "ldap"})

Check that all users are ones from ldap and then

> db.users.deleteMany({authenticationMethod: "ldap"})
> quit()

Then restart wekan:

$ sudo systemctl restart wekan.service

Login again using your LDAP account and that should fix your email address.

Hope to help! Feedback welcome :-)

@yalh76
Copy link
Member

yalh76 commented Feb 15, 2022

Have you tested with last wekan version?

@yalh76 yalh76 closed this as completed Jul 4, 2022
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

3 participants