Interesting unexpected behavior with nicegui/examples/authentication/main.py in current Firefox #3530
Replies: 3 comments 4 replies
-
It works for me. Can anyone else reproduce it? |
Beta Was this translation helpful? Give feedback.
-
It looks like the input fields are filled by Firefox before we have a client connection. Because we do not buffer client-side changes and transmit them on connection, Python is not aware of the filled values. If you have more than one saved password, Firefox will ask you to chose. And then, the client connection is established. There are two possible fixes: 1. send all input values on client connection (NiceGUI core) or add |
Beta Was this translation helpful? Give feedback.
-
Thank you, rodja, The second fix worked for me. BTW, only case if only one password saved in Firefox for the Test program's url is causing the problem above. If two different users / passwords are saved - both work fine without any fixes. But now the problem is solved: I have changed: @ui.page('/login')
async def login() -> Optional[RedirectResponse]:
await ui.context.client.connected() to: @ui.page('/login')
async def login() -> Optional[RedirectResponse]:
await ui.context.client.connected() and it works as it should - saved user logs-in the future maintenance core fix sounds reasonable |
Beta Was this translation helpful? Give feedback.
-
Question
Could be Firefox bug
What is weird, if you also save: user2 / pass2 in Firefox, then both logins / passwords work as expected with no errors
Beta Was this translation helpful? Give feedback.
All reactions