Add a PIN reset node for triggered accounts #48

Closed
opened 2025-04-01 09:20:26 +02:00 by Alfred-mk · 2 comments
Member

Requirement

Admins should only be able to trigger a pin reset which forces the user to set a new pin. Currently, the admin can set their pin which is a security flaw.

Plan

  1. When an admin resets the PIN for a user, they will input the user's phone number and their own PIN to authorize the request.
  2. If the admin is authorized, a data key will be written on the user's account to mark that a self PIN reset request has been made.
  3. When the user dials the USSD, they will first get the PIN reset node and set their own PIN before accessing the main menu.
### Requirement Admins should only be able to trigger a pin reset which forces the user to set a new pin. Currently, the admin can set their pin which is a security flaw. ### Plan 1. When an admin resets the PIN for a user, they will input the user's phone number and their own PIN to authorize the request. 2. If the admin is authorized, a data key will be written on the user's account to mark that a self PIN reset request has been made. 3. When the user dials the USSD, they will first get the PIN reset node and set their own PIN before accessing the main menu.
Alfred-mk added the
Kind/Enhancement
Priority
High
labels 2025-04-01 09:20:47 +02:00
Author
Member

Solution

Admin reset

  1. The admin will initiate the PIN reset by inputting the user's phone number.
  2. They will then authorize the request and provide their own PIN.
  3. A success message will be displayed to the admin and they can navigate to a different node or quit.
image

User self-reset

  1. The user will dial the USSD and immediately receive the self PIN reset request if an admin initiated it.
  2. The user will input a valid 4 digit PIN and receive an error response if their input does not match the required criteria.
  3. The user will then confirm their PIN, ensuring that they remember it moving forward.
  4. If valid, the new PIN will be set, and the user can either navigate to the root of the USSD or quit.
image
## Solution ### Admin reset 1. The admin will initiate the PIN reset by inputting the user's phone number. 2. They will then authorize the request and provide their own PIN. 3. A success message will be displayed to the admin and they can navigate to a different node or quit. <img width="710" alt="image" src="attachments/d4edb55b-58da-46d4-a338-6ed7f4ffc074"> ### User self-reset 1. The user will dial the USSD and immediately receive the self PIN reset request if an admin initiated it. 2. The user will input a valid 4 digit PIN and receive an error response if their input does not match the required criteria. 3. The user will then confirm their PIN, ensuring that they remember it moving forward. 4. If valid, the new PIN will be set, and the user can either navigate to the root of the USSD or quit. <img width="713" alt="image" src="attachments/cd2bd74b-dc63-43f4-a39a-3a34adc977d5">
Member

LGTM

LGTM
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: grassrootseconomics/sarafu-vise#48
No description provided.