Compare commits
3 Commits
fd54b4e0df
...
c79d3498cc
Author | SHA1 | Date | |
---|---|---|---|
c79d3498cc | |||
1d90cce51a | |||
bbdffafe67 |
@ -28,8 +28,8 @@ var (
|
|||||||
logg = logging.NewVanilla().WithDomain("ussdmenuhandler")
|
logg = logging.NewVanilla().WithDomain("ussdmenuhandler")
|
||||||
scriptDir = path.Join("services", "registration")
|
scriptDir = path.Join("services", "registration")
|
||||||
translationDir = path.Join(scriptDir, "locale")
|
translationDir = path.Join(scriptDir, "locale")
|
||||||
validPin = 4
|
validPin = 4
|
||||||
validYOB = 4
|
validYOB = 4
|
||||||
)
|
)
|
||||||
|
|
||||||
type FSData struct {
|
type FSData struct {
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Storage struct {
|
type Storage struct {
|
||||||
Persister *persist.Persister
|
Persister *persist.Persister
|
||||||
UserdataDb db.Db
|
UserdataDb db.Db
|
||||||
}
|
}
|
||||||
|
|
||||||
type StorageProvider interface {
|
type StorageProvider interface {
|
||||||
@ -25,7 +25,7 @@ func NewSimpleStorageProvider(stateStore db.Db, userdataStore db.Db) StorageProv
|
|||||||
pe = pe.WithFlush()
|
pe = pe.WithFlush()
|
||||||
return &SimpleStorageProvider{
|
return &SimpleStorageProvider{
|
||||||
Storage: Storage{
|
Storage: Storage{
|
||||||
Persister: pe,
|
Persister: pe,
|
||||||
UserdataDb: userdataStore,
|
UserdataDb: userdataStore,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -1 +0,0 @@
|
|||||||
Enter a new four number pin
|
|
@ -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
|
|
@ -1 +0,0 @@
|
|||||||
Enter your old PIN
|
|
@ -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
|
|
||||||
|
|
||||||
|
|
@ -4,4 +4,3 @@ MOUT guard_pin 3
|
|||||||
MOUT back 0
|
MOUT back 0
|
||||||
HALT
|
HALT
|
||||||
INCMP _ 0
|
INCMP _ 0
|
||||||
INCMP old_pin 1
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
Your PIN change request has been successful
|
|
@ -1,6 +0,0 @@
|
|||||||
LOAD confirm_pin_change 0
|
|
||||||
MOUT back 0
|
|
||||||
MOUT quit 9
|
|
||||||
HALT
|
|
||||||
INCMP _ 0
|
|
||||||
INCMP quit 9
|
|
Loading…
Reference in New Issue
Block a user