Compare commits

..

3 Commits

Author SHA1 Message Date
c79d3498cc
use global vars 2024-09-14 17:05:11 +03:00
1d90cce51a
remove old pin navigation 2024-09-14 17:03:12 +03:00
bbdffafe67
remove pin reset nodes 2024-09-14 17:02:55 +03:00
9 changed files with 5 additions and 31 deletions

View File

@ -28,8 +28,8 @@ var (
logg = logging.NewVanilla().WithDomain("ussdmenuhandler")
scriptDir = path.Join("services", "registration")
translationDir = path.Join(scriptDir, "locale")
validPin = 4
validYOB = 4
validPin = 4
validYOB = 4
)
type FSData struct {

View File

@ -6,8 +6,8 @@ import (
)
type Storage struct {
Persister *persist.Persister
UserdataDb db.Db
Persister *persist.Persister
UserdataDb db.Db
}
type StorageProvider interface {
@ -25,7 +25,7 @@ func NewSimpleStorageProvider(stateStore db.Db, userdataStore db.Db) StorageProv
pe = pe.WithFlush()
return &SimpleStorageProvider{
Storage: Storage{
Persister: pe,
Persister: pe,
UserdataDb: userdataStore,
},
}

View File

@ -1 +0,0 @@
Enter a new four number pin

View File

@ -1,7 +0,0 @@
LOAD save_temporary_pin 0
MOUT back 0
HALT
RELOAD save_temporary_pin
CATCH invalid_pin flag_incorrect_pin 1
INCMP _ 0
MOVE confirm_pin_change

View File

@ -1 +0,0 @@
Enter your old PIN

View File

@ -1,9 +0,0 @@
LOAD authorize_account 6
MOUT back 0
HALT
RELOAD authorize_account
CATCH incorrect_pin flag_incorrect_pin 1
MOVE new_pin
INCMP _ 0

View File

@ -4,4 +4,3 @@ MOUT guard_pin 3
MOUT back 0
HALT
INCMP _ 0
INCMP old_pin 1

View File

@ -1 +0,0 @@
Your PIN change request has been successful

View File

@ -1,6 +0,0 @@
LOAD confirm_pin_change 0
MOUT back 0
MOUT quit 9
HALT
INCMP _ 0
INCMP quit 9