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

Feature/validate pin for balance #89

Conversation

Christiantyemele
Copy link
Collaborator

No description provided.

@Christiantyemele
Copy link
Collaborator Author

@stephane-segning requesting review for validation of user's pin for balance display

docs/useStorage.md Outdated Show resolved Hide resolved
power-pay-frontend/src/Tests/useStorageTest.tsx Outdated Show resolved Hide resolved
power-pay-frontend/src/Hooks/useStorage.ts Outdated Show resolved Hide resolved
@Christiantyemele
Copy link
Collaborator Author

Christiantyemele commented Mar 10, 2024

@stephane-segning have removed unnecessary files and the requesting for review.

Copy link
Contributor

@stephane-segning stephane-segning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work @Christiantyemele! Now, please redo this using good Java Patterns.

@Christiantyemele
Copy link
Collaborator Author

Christiantyemele commented Mar 12, 2024

good work @Koufan-De-King! we have to make it now in good java design patterns with @forkimenjeckayang's help

@stephane-segning
Copy link
Contributor

Screenshot 2024-03-19 at 11 17 10

These changes doesn't belongs to this ticket. Please @Christiantyemele remove them.

+ validatePIN(PhoneNumber,PIN)
}
class UserRepository {
- PIN
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't agree having the PIN as an attribute. It's not something that belongs to a Repository. It belongs to a user.

}
class UserRepository {
- PIN
+ getPIN(PhoneNumber)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having a method getPIN is a security issue, because someone, provided he entered the system, can read user's PINs.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can request @Bansikah's help to better understand how you can hide the PIN and still use it to validate the password.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can request @Bansikah's help to better understand how you can hide the PIN and still use it to validate the password.
noted @stephane-segning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants