Compare commits
3 Commits
43892f0d8c
...
2c57535a4e
| Author | SHA1 | Date | |
|---|---|---|---|
| 2c57535a4e | |||
| be9d039ef1 | |||
| a799e19afc |
2
go.mod
2
go.mod
@ -3,7 +3,7 @@ module git.grassecon.net/urdt/ussd
|
|||||||
go 1.23.0
|
go 1.23.0
|
||||||
|
|
||||||
require (
|
require (
|
||||||
git.defalsify.org/vise.git v0.2.1-0.20241122120231-9e9ee5bdfa7a
|
git.defalsify.org/vise.git v0.2.1-0.20241209194740-26fc82a76ede
|
||||||
github.com/alecthomas/assert/v2 v2.2.2
|
github.com/alecthomas/assert/v2 v2.2.2
|
||||||
github.com/gofrs/uuid v4.4.0+incompatible
|
github.com/gofrs/uuid v4.4.0+incompatible
|
||||||
github.com/grassrootseconomics/eth-custodial v1.3.0-beta
|
github.com/grassrootseconomics/eth-custodial v1.3.0-beta
|
||||||
|
|||||||
2
go.sum
2
go.sum
@ -1,5 +1,7 @@
|
|||||||
git.defalsify.org/vise.git v0.2.1-0.20241122120231-9e9ee5bdfa7a h1:LvGKktk0kUnuRN3nF9r15D8OoV0sFaMmQr52kGq2gtE=
|
git.defalsify.org/vise.git v0.2.1-0.20241122120231-9e9ee5bdfa7a h1:LvGKktk0kUnuRN3nF9r15D8OoV0sFaMmQr52kGq2gtE=
|
||||||
git.defalsify.org/vise.git v0.2.1-0.20241122120231-9e9ee5bdfa7a/go.mod h1:jyBMe1qTYUz3mmuoC9JQ/TvFeW0vTanCUcPu3H8p4Ck=
|
git.defalsify.org/vise.git v0.2.1-0.20241122120231-9e9ee5bdfa7a/go.mod h1:jyBMe1qTYUz3mmuoC9JQ/TvFeW0vTanCUcPu3H8p4Ck=
|
||||||
|
git.defalsify.org/vise.git v0.2.1-0.20241209194740-26fc82a76ede h1:BtooQZJDYEgeRKqv8RSxYSbW5jh0UIFJ6zRMEZZn0sc=
|
||||||
|
git.defalsify.org/vise.git v0.2.1-0.20241209194740-26fc82a76ede/go.mod h1:jyBMe1qTYUz3mmuoC9JQ/TvFeW0vTanCUcPu3H8p4Ck=
|
||||||
github.com/alecthomas/assert/v2 v2.2.2 h1:Z/iVC0xZfWTaFNE6bA3z07T86hd45Xe2eLt6WVy2bbk=
|
github.com/alecthomas/assert/v2 v2.2.2 h1:Z/iVC0xZfWTaFNE6bA3z07T86hd45Xe2eLt6WVy2bbk=
|
||||||
github.com/alecthomas/assert/v2 v2.2.2/go.mod h1:pXcQ2Asjp247dahGEmsZ6ru0UVwnkhktn7S0bBDLxvQ=
|
github.com/alecthomas/assert/v2 v2.2.2/go.mod h1:pXcQ2Asjp247dahGEmsZ6ru0UVwnkhktn7S0bBDLxvQ=
|
||||||
github.com/alecthomas/participle/v2 v2.0.0 h1:Fgrq+MbuSsJwIkw3fEj9h75vDP0Er5JzepJ0/HNHv0g=
|
github.com/alecthomas/participle/v2 v2.0.0 h1:Fgrq+MbuSsJwIkw3fEj9h75vDP0Er5JzepJ0/HNHv0g=
|
||||||
|
|||||||
@ -732,9 +732,7 @@ func (h *Handlers) ResetIncorrectPin(ctx context.Context, sym string, input []by
|
|||||||
// Setback sets the flag_back_set flag when the navigation is back
|
// Setback sets the flag_back_set flag when the navigation is back
|
||||||
func (h *Handlers) SetBack(ctx context.Context, sym string, input []byte) (resource.Result, error) {
|
func (h *Handlers) SetBack(ctx context.Context, sym string, input []byte) (resource.Result, error) {
|
||||||
var res resource.Result
|
var res resource.Result
|
||||||
//TODO:
|
if h.st.Back() {
|
||||||
//Add check if the navigation is lateral nav instead of checking the input.
|
|
||||||
if string(input) == "0" {
|
|
||||||
flag_back_set, _ := h.flagManager.GetFlag("flag_back_set")
|
flag_back_set, _ := h.flagManager.GetFlag("flag_back_set")
|
||||||
res.FlagSet = append(res.FlagSet, flag_back_set)
|
res.FlagSet = append(res.FlagSet, flag_back_set)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,6 +5,7 @@ RELOAD get_current_profile_info
|
|||||||
MAP get_current_profile_info
|
MAP get_current_profile_info
|
||||||
MOUT back 0
|
MOUT back 0
|
||||||
HALT
|
HALT
|
||||||
|
INCMP _ 0
|
||||||
RELOAD set_back
|
RELOAD set_back
|
||||||
CATCH _ flag_back_set 1
|
CATCH _ flag_back_set 1
|
||||||
LOAD save_familyname 64
|
LOAD save_familyname 64
|
||||||
@ -15,4 +16,3 @@ CATCH edit_yob flag_yob_set 0
|
|||||||
CATCH edit_location flag_location_set 0
|
CATCH edit_location flag_location_set 0
|
||||||
CATCH edit_offerings flag_offerings_set 0
|
CATCH edit_offerings flag_offerings_set 0
|
||||||
CATCH pin_entry flag_familyname_set 0
|
CATCH pin_entry flag_familyname_set 0
|
||||||
INCMP select_gender *
|
|
||||||
|
|||||||
@ -5,6 +5,7 @@ RELOAD get_current_profile_info
|
|||||||
MAP get_current_profile_info
|
MAP get_current_profile_info
|
||||||
MOUT back 0
|
MOUT back 0
|
||||||
HALT
|
HALT
|
||||||
|
INCMP _ 0
|
||||||
RELOAD set_back
|
RELOAD set_back
|
||||||
CATCH _ flag_back_set 1
|
CATCH _ flag_back_set 1
|
||||||
LOAD save_firstname 128
|
LOAD save_firstname 128
|
||||||
|
|||||||
@ -5,11 +5,10 @@ RELOAD get_current_profile_info
|
|||||||
LOAD save_location 16
|
LOAD save_location 16
|
||||||
MOUT back 0
|
MOUT back 0
|
||||||
HALT
|
HALT
|
||||||
RELOAD set_back
|
INCMP _ 0
|
||||||
|
RELOAD set_back
|
||||||
CATCH _ flag_back_set 1
|
CATCH _ flag_back_set 1
|
||||||
RELOAD save_location
|
RELOAD save_location
|
||||||
INCMP _ 0
|
|
||||||
CATCH pin_entry flag_location_set 1
|
CATCH pin_entry flag_location_set 1
|
||||||
CATCH edit_offerings flag_offerings_set 0
|
CATCH edit_offerings flag_offerings_set 0
|
||||||
CATCH pin_entry flag_location_set 0
|
CATCH pin_entry flag_location_set 0
|
||||||
INCMP edit_offerings *
|
|
||||||
|
|||||||
@ -5,6 +5,7 @@ RELOAD get_current_profile_info
|
|||||||
LOAD save_offerings 8
|
LOAD save_offerings 8
|
||||||
MOUT back 0
|
MOUT back 0
|
||||||
HALT
|
HALT
|
||||||
|
INCMP _ 0
|
||||||
RELOAD set_back
|
RELOAD set_back
|
||||||
CATCH _ flag_back_set 1
|
CATCH _ flag_back_set 1
|
||||||
RELOAD save_offerings
|
RELOAD save_offerings
|
||||||
|
|||||||
@ -5,6 +5,7 @@ RELOAD get_current_profile_info
|
|||||||
MAP get_current_profile_info
|
MAP get_current_profile_info
|
||||||
MOUT back 0
|
MOUT back 0
|
||||||
HALT
|
HALT
|
||||||
|
INCMP _ 0
|
||||||
RELOAD set_back
|
RELOAD set_back
|
||||||
CATCH _ flag_back_set 1
|
CATCH _ flag_back_set 1
|
||||||
LOAD verify_yob 6
|
LOAD verify_yob 6
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user