Compare commits

..

No commits in common. "c79d3498ccad36316b85b3e747362f53c6521cb6" and "fd54b4e0dfc5924af3cd4e726535c178b812f50c" have entirely different histories.

9 changed files with 31 additions and 5 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,7 +6,7 @@ import (
)
type Storage struct {
Persister *persist.Persister
Persister *persist.Persister
UserdataDb db.Db
}
@ -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

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

View File

@ -0,0 +1,7 @@
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

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

View File

@ -0,0 +1,9 @@
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,3 +4,4 @@ MOUT guard_pin 3
MOUT back 0
HALT
INCMP _ 0
INCMP old_pin 1

View File

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

View File

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