Codimd: User password changing

Created on 25 Apr 2017  路  6Comments  路  Source: hackmdio/codimd

Is there a way users can change their own passwords after logging in? (or can admins hardcode new passwords in the DB somehow?)

Most helpful comment

I think reseting the password by using the script manually is no a propper solution. You have to take care to not damage the DB, for example.
It would be more useful for everyone to have a reset button as other web apps have.

All 6 comments

Hi @conspacer
There isn't any way to change user's password after signed-in.
But yes, you could change it in the DB.
The password is hashed (scrypt), so you could hash your new password then replace it.

@jackycute do I need to pull the salt value from the instance to generate a correct hash?

Yes, you do.

Thanks for the info

I think reseting the password by using the script manually is no a propper solution. You have to take care to not damage the DB, for example.
It would be more useful for everyone to have a reset button as other web apps have.

952

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Nebukadneza picture Nebukadneza  路  3Comments

almereyda picture almereyda  路  4Comments

LukasKalbertodt picture LukasKalbertodt  路  4Comments

arnisoph picture arnisoph  路  5Comments

mxmo0rhuhn picture mxmo0rhuhn  路  3Comments