enable status bar to update immidiately#223
Conversation
|
before: statusbar1.mp4after: statusbar2.mp4 |
|
Thanks @Miduo666 for the pull request. I think the original design intention of the status bar security key cached status was as follows: If a user chooses to cache the security key locally, they do not need to enter it again on each login. If the user chooses not to cache the security key locally, they must enter the security key every time they log in or access encrypted resources. Even after entering it, the key will not be stored locally. For newly created accounts, the security key is not cached locally by default. Therefore, after the user logs in and enters the security key, the status shown in the bottom-right corner will still display “not cached locally.” Originally posted by @tonypioneer in #346 |
|
Understood. So the 'not cached' status is expected even after a successful login if the user didn't explicitly opt for local storage. It’s a bit tricky, but I get the security rationale behind it now. Thanks for pointing that out! |
|
However, I think I've found a bug that contradicts this logic. When I refresh the page after a login where the key shouldn't be cached, the status bar incorrectly updates to 'cached locally'. @tonypioneer |
Thanks for pointing out this issue. I think this is because after we click on the CONTINUE button, the app will use the cached authentication information to log into the app. This may cause the issue. I think we can discuss with @gjwgit about the workflows of security key caching, such as whether the key should be cached after a successful login, and after clicking on the CONTINUE button, whether the key should be cached as well. |
|
Thanks @tonypioneer for incorporating this into the overall secret key review/update in #227. Thanks @Miduo666 for this fix to be incorproated into #227. |
Pull Request Details
This PR enable status bar to update immidiately after entering a correct security key.
Associated Issue
Type of Change
Complete the check-list below to ensure your branch is ready for PR.
make preporflutter analyze lib)dart testoutput or screenshot included in issue #Finalising
Once PR discussion is complete and reviewers have approved: