-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
The authentication code never lets my browser session connect to the server. Wireshark shows that it is setting the correct password (reprap) but the server always returns err 1 and WRONG PASSWORD.
Workaround: change the "return false" at the end of function isLoggedIn() to "return true", thereby disabling authentication.
Some issues (possibly related) that I have spotted in the code:
- Function logIn() doesn't check whether the IP address is already in the table, but always tries to append it. So I think the table will fill up rapidly if the same IP address tries to connect more than once without logging out in between.
- In function logOut(), when it deletes an entry in the table by copying the following table entries down, I think it copies them in the wrong order. If there is more than one entry after the one being deleted, the effect will be to replicate the last entry.
Metadata
Metadata
Assignees
Labels
No labels