Skip to content

Login with empty text of password. #118

@smilesm2

Description

@smilesm2

hi,
Thanks for this project. It really help me a lot.
But I found out that if I login with an empty text password, it will not be able to login and type account and password again until restart my browser(Chrome).
I think that is because Chrome remember basic-auth with my empty password.
So I add a if addition myAuth.pass !== "" on WebSSH2/app/server/util.js:12

var myAuth = Auth(req)
if (myAuth && myAuth.pass !== "") {
    req.session.username = myAuth.name

And now the input box of login will appear again just like inputing a wrong password!

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions