Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Live): Fixed console messages displayed twice (#1359)
## Problem - The console messages are often displayed twice - The SSL certificate is generated asynchronously, the login service might be started before the certificate fingerprint message is generated. - After that the fingerprint message is created then the updated messages are displayed again, resulting in two similar messages which might be confusing ![agama_console_messages_twice](https://github.com/openSUSE/agama/assets/907998/7d2acd26-5890-47da-aa97-3b6d6c04c723) ## Solution - Added a helper service which postpones the login service until the certificate fingerprint is generated - However, we cannot wait forever. If the webserver gets stucked or crashes before saving the certificate to disk then you would not be able to login - So there is a 15 seconds timeout, after that the messages are displayed even if still not complete - But in most cases the delay is just 2 seconds ## Testing - Tested manually ## Screenshots ![agama_console_messages_twice_fixed](https://github.com/openSUSE/agama/assets/907998/cbb5ac3c-e933-438b-8c09-c4c9443f248b)
- Loading branch information