-
Notifications
You must be signed in to change notification settings - Fork 28
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
[PB-1401, PB-1403] add blocked account view #999
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
} | ||
|
||
setLoginError([castedError.message]); | ||
setShowErrors(true); | ||
if (castedError.message.includes('Your account has been blocked for security reasons. Please reach out to us')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not seem to be a good way to check the error, at the slightest change in the message it will stop working, and it will not take into account that a change in the message may break something
Use the status that returns the call or another signal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The sdk version needs to be updated to use the new unlocking features.
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 1 New issue |
Dependencies:
internxt/drive-server-wip#250
internxt/sdk#185
New dependencies for Http Error code catching on login:
internxt/sdk#186
If this is not implemented, then we would need to compare the message string instead of the code to know if the user has been blocked.