HumanSignal / label-studio

Label Studio is a multi-type data labeling and annotation tool with standardized output format
https://labelstud.io
Apache License 2.0
19.35k stars 2.4k forks source link

Can not reset password #6272

Open zyh3826 opened 2 months ago

zyh3826 commented 2 months ago

Describe the bug A clear and concise description of what the bug is. use SDK to list the users, find image but I use label-studio reset_password --data-dir xxx, got: image can not find the user, I test all other users, but I always get this message. and also tested label-studio user --username usclyy --data-dir xxx, but still can not find the username. To Reproduce Steps to reproduce the behavior:

  1. start the label-studio with nohup label-studio start -p $port --data-dir $data_dir > $log_file 2>&1 &

Environment (please complete the following information):

jombooth commented 2 months ago

Hi @zyh3826 - we'll open a bug for this. If you're comfortable using Django directly, you could try using label-studio shell then selecting the user via the User queryset, and calling set_password, then saving the user: https://docs.djangoproject.com/en/5.1/ref/contrib/auth/#django.contrib.auth.models.User.set_password

jombooth commented 2 months ago

/jira create

Workflow run Jira issue TRIAG-821 is created