Skip to content
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

Merged
merged 9 commits into from
Jan 24, 2024

Conversation

apsantiso
Copy link
Contributor

@apsantiso apsantiso commented Jan 16, 2024

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.

Copy link

vercel bot commented Jan 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
drive-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2024 7:27am

@apsantiso apsantiso changed the base branch from master to staging January 16, 2024 15:52
Base automatically changed from staging to master January 17, 2024 07:32
@apsantiso apsantiso marked this pull request as ready for review January 18, 2024 12:24
@apsantiso apsantiso requested a review from CandelR as a code owner January 18, 2024 12:24
@apsantiso apsantiso added the enhancement New feature or request label Jan 18, 2024
@apsantiso apsantiso changed the base branch from master to staging January 19, 2024 01:34
}

setLoginError([castedError.message]);
setShowErrors(true);
if (castedError.message.includes('Your account has been blocked for security reasons. Please reach out to us')) {
Copy link
Contributor

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.

src/app/auth/services/auth.service.ts Outdated Show resolved Hide resolved
src/app/auth/components/LogIn/LogIn.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@CandelR CandelR left a 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.

Copy link

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

1 New issue
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@CandelR CandelR changed the title [PB-1401] add blocked account view [PB-1401, PB-1403] add blocked account view Jan 24, 2024
@CandelR CandelR merged commit 36243f2 into staging Jan 24, 2024
3 checks passed
@CandelR CandelR deleted the feat/PB-22-auto-account-unblock branch January 24, 2024 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants