pin-reset #139
Reference in New Issue
Block a user
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.fsStoredefer 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 mainperhaps 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