mirror of
https://github.com/plankanban/planka.git
synced 2026-02-24 19:08:59 +03:00
[Bug] can't edit username/email #138
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @strinque on GitHub (Oct 12, 2021).
Description
Once logged on planka, it's impossible to update the username or email.
However it's still possible to update the password.
Reproduction
Login => User => Settings => Edit Username
Login => User => Settings => Edit Email
Any modification will show the "Unknown error, try again later" error message.
Logs with pm2
Possible Fix?
There might be an issue with the commit: "b39119ace47b41666f4da230724a7712796b2a47" during the refactoring.
The function is correct for update-password.js:
Not for update-email.js and update-username.js:
Fix: replace
update(user, values, this.req)byupdateOne(user, values, this.req)in those files.It has fixed the issue for me but I'm not sure about the fix so I didn't made a pull-request.
Thanks anyway for this awesome project!
@meltyshev commented on GitHub (Oct 20, 2021):
Thanks for reporting this. Fixed by https://github.com/plankanban/planka/pull/168.