stepan-mitkin / drakonhub

The source code for DrakonHub
212 stars 51 forks source link

sign-up bug: impossible to set the password #1

Open Horolsky opened 3 years ago

Horolsky commented 3 years ago

No form is given to set the password on signing up, no emails received on acc creation nor on psw resetting.

seymurkarimov commented 1 year ago

the password for each new user is set randomly in web.lua, function api_create_user_email(req, session, headers), line 659:

local password = utils.random_password(8)

You can bypass this "unknown' password in utils.lua (function random_password(length), line 1090) via adding something like

result = "drakoniscool"

Later this default password can be reset individually via web interface