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

Can't login by password #108

Closed
blastrock opened this issue Jul 20, 2023 · 10 comments
Closed

Can't login by password #108

blastrock opened this issue Jul 20, 2023 · 10 comments

Comments

@blastrock
Copy link

blastrock commented Jul 20, 2023

I have set up the password authentication on espsomfyrts, but I can't get past the login form.

Looking at the code, it goes through some PIN specific code:

        let pin = '';
        for (let i = 0; i < 4; i++) {
            pin += sec.pin[`d${i}`];
        }
        if (pin.length !== 4) return;

pin.length is 0 there, so nothing happens when I click login.

@011V32
Copy link

011V32 commented Jul 20, 2023

I have the same problem :(

@rstrouse
Copy link
Owner

Uggh. This plugged a ui error and painted into the corner.

Please run the following url from your browser.
http://<ip address of espsomfyrts>/backup

And save this file. I am rebuilding an onboard file now.

@blastrock
Copy link
Author

As a workaround, commenting the if (pin.length !== 4) line in the dev console allows me to log in :)

@rstrouse
Copy link
Owner

That works too!

rstrouse added a commit that referenced this issue Jul 20, 2023
@rstrouse
Copy link
Owner

v2.0.3 no longer has this issue.

@011V32
Copy link

011V32 commented Jul 21, 2023

I can confirm that it now works. 👍

I would have 2 suggestions for improvement:

  1. It would be great if a key-enter would also work for login. (Currently you can only get in if you press the login button with the mouse).
  2. When you reload the page you should stay logged in. Currently you are logged out after each refresh.

@rstrouse
Copy link
Owner

v2.1.0 will process the enter key. ESPSomfy RTS cannot maintain a session with the device. The webserver on ESP32 is definitely not that robust. A cookie could store the key hash locally but that creates even more headaches.

@rstrouse
Copy link
Owner

v2.1.0 has been released.

@011V32
Copy link

011V32 commented Jul 22, 2023

The "normal" Enter works, but the enter from the Num-Block doesn't 🙈

@rstrouse
Copy link
Owner

Hmmm different keyboard mapping. Uggh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants