Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants