-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
When MFA login fails, display an orange banner at the top of the screen #10645
Comments
I'm making a change that might be bigger than the issue seems to ask, but the issue is that when I was checking the implementation I realized that there are many places where the connection to Joplin Cloud can fail. THe current implementation of The problem was that while 'isAuthenticated My solution to fix this was to add a There is one drawback: it will be harder for the user to see the error message returned by the server since it will only be present inside the log on console/generated by Logger |
I'm adding videos of how the implementation I did work: First login (application without any state): first_login.mp4User was logged in, but credentials turned invalid (mfa was enabled or application was deleted on website): credential_invalid.mp4When Joplin Cloud is offline: joplin_cloud_offline.mp4 |
Thanks for clarifying the situation, but regarding this:
The problem is that synchronisation might fail in the background, so in that case we don't want to jump to the login screen without asking the user. |
I don't think this will be a problem, I'm not going to change anything about synchronisation, I'm just making |
PR: #10649 |
… credential is not valid anymore (#10649)
Operating system
Windows
Joplin version
3.0.0
Desktop version info
No response
Current behaviour
Currently when enabling MFA, the next sync operation is going to fail and it will just show this in the sidebar:
It's easy to miss it, so instead we should display a banner at the top (using
renderNotificationMessage()
) telling the user that they need to login. Clicking on the banner should open the Joplin Cloud screen for login (just like when we click on the Synchronize button)The same should apply to mobile
Expected behaviour
No response
Logs
No response
The text was updated successfully, but these errors were encountered: