pin-reset #139
No reviewers
Labels
No Label
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
Activity:Doing
Activity:Proposal
Runner
AT
Runner
CLI
Runner
HTTP
cleanup
devops
easypeasy
exchange
l8ter
legacy
optimization
privilege
refactor
smell
support
tooling
ux
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: urdt/ussd#139
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "pin-reset"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements PIN reset for others for users with the privilege
WIP: pin-resetto pin-reset@ -48,6 +49,9 @@ func main() {
ctx = context.WithValue(ctx, "Database", database)
pfp := path.Join(scriptDir, "pp.csv")
as, _ := utils.NewAdminStore(ctx, "admin_numbers")
We are going to need all executables. Should this be instantiated somewhere else, since the path is known?
Sure,we can define it in the LocalHandlerService , then instantiate it in the NewHandlerService,consider:
12825ae08a
,will this work?@ -0,0 +52,4 @@
store := as.fsStore
defer store.Close()
data, err := os.ReadFile("admin_numbers.json")
Let's extract this into a devtools folder, separate executable.
Consider:
7fa38340dd
@ -0,0 +1,17 @@
package main
perhaps a subcommand or (easier) a subdirectory?
@ -53,8 +62,12 @@ func (ls *LocalHandlerService) SetDataStore(db *db.Db) {
ls.UserdataStore = db
}
func (ls *LocalHandlerService) SetAdminStore(adminstore *utils.AdminStore) {
this doesnt seem to be in use