Compare commits
No commits in common. "c79d3498ccad36316b85b3e747362f53c6521cb6" and "fd54b4e0dfc5924af3cd4e726535c178b812f50c" have entirely different histories.
c79d3498cc
...
fd54b4e0df
@ -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,7 +6,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Storage struct {
|
type Storage struct {
|
||||||
Persister *persist.Persister
|
Persister *persist.Persister
|
||||||
UserdataDb db.Db
|
UserdataDb db.Db
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -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
services/registration/new_pin
Normal file
1
services/registration/new_pin
Normal file
@ -0,0 +1 @@
|
|||||||
|
Enter a new four number pin
|
7
services/registration/new_pin.vis
Normal file
7
services/registration/new_pin.vis
Normal 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
|
1
services/registration/old_pin
Normal file
1
services/registration/old_pin
Normal file
@ -0,0 +1 @@
|
|||||||
|
Enter your old PIN
|
9
services/registration/old_pin.vis
Normal file
9
services/registration/old_pin.vis
Normal 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
|
||||||
|
|
||||||
|
|
@ -4,3 +4,4 @@ MOUT guard_pin 3
|
|||||||
MOUT back 0
|
MOUT back 0
|
||||||
HALT
|
HALT
|
||||||
INCMP _ 0
|
INCMP _ 0
|
||||||
|
INCMP old_pin 1
|
||||||
|
1
services/registration/pin_reset_success
Normal file
1
services/registration/pin_reset_success
Normal file
@ -0,0 +1 @@
|
|||||||
|
Your PIN change request has been successful
|
6
services/registration/pin_reset_success.vis
Normal file
6
services/registration/pin_reset_success.vis
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
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