CSI-CATT-DMCE / CSI-CATT-DMCE/Care4U
Make OTPs truly random
- Dominant language
- Java
- Stars
- 2
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
# Problem
Currently, the 'Forgot password' activity uses a hardcoded OTP at [ForgotPassword.java](https://github.com/CSI-CATT-DMCE/Care4U/blob/main/app/src/main/java/com/example/innovathon2022_care4u/ForgotPassword.java#L23-L35).
## Potential fix
1. Generate a random OTP when the activity is created.
2. Compare this OTP with the one in the text field.
Contributor guide
No contributing guide indexed for this repository
Research direction
Open app/src/main/java/com/example/innovathon2022_care4u/ForgotPassword.java and inspect lines 23-35, where the hardcoded OTP is used. Trace the Forgot password activity's creation and text-field comparison, then verify the flow with multiple attempts. Done means each activity creation uses a random OTP and the entered value is compared against that OTP.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100