Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.

Less then 6 digit password is allowed #267

Open
johnatank opened this issue Jun 20, 2022 · 1 comment
Open

Less then 6 digit password is allowed #267

johnatank opened this issue Jun 20, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@johnatank
Copy link

Hi,
I am using latest exatorrent image (ghcr.io/varbhat/exatorrent:latest) and it seems like it allows less then 6 digit password if username length is more than 5:

internal/core/socket.go

                case "adduser":
                        if !(len(req.Data1) > 5 || len(req.Data2) > 5) {
                                _ = uc.SendMsg("resp", "error", "length of username and password must be more than 5")
                                return
                        }

Adding such user gives "Error Adding User to Database" error - not much explanatory..

Also, changing logged in user to 5 digit password (with legit 6 char username) disconnects users and makes it unable to log in.

Thanks,
Maksym

@varbhat
Copy link
Owner

varbhat commented Jun 20, 2022

@johnatank , Thanks for reporting it. I will look into it.

@nlevee nlevee added the enhancement New feature or request label Nov 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants