rename unlock flags to authorize

This commit is contained in:
Carlosokumu 2024-08-30 11:15:08 +03:00
parent 1ded359b59
commit 95e142860e
Signed by untrusted user: carlos
GPG Key ID: 7BD6BC8160A5C953
5 changed files with 12 additions and 11 deletions

View File

@ -91,7 +91,7 @@ func main() {
rfs.AddLocalFunc("verify_pin", ussdHandlers.VerifyPin) rfs.AddLocalFunc("verify_pin", ussdHandlers.VerifyPin)
rfs.AddLocalFunc("check_identifier", ussdHandlers.CheckIdentifier) rfs.AddLocalFunc("check_identifier", ussdHandlers.CheckIdentifier)
rfs.AddLocalFunc("check_account_status", ussdHandlers.CheckAccountStatus) rfs.AddLocalFunc("check_account_status", ussdHandlers.CheckAccountStatus)
rfs.AddLocalFunc("unlock_account", ussdHandlers.Authorize) rfs.AddLocalFunc("authorize_account", ussdHandlers.Authorize)
rfs.AddLocalFunc("quit", ussdHandlers.Quit) rfs.AddLocalFunc("quit", ussdHandlers.Quit)
rfs.AddLocalFunc("check_balance", ussdHandlers.CheckBalance) rfs.AddLocalFunc("check_balance", ussdHandlers.CheckBalance)
rfs.AddLocalFunc("validate_recipient", ussdHandlers.ValidateRecipient) rfs.AddLocalFunc("validate_recipient", ussdHandlers.ValidateRecipient)
@ -110,8 +110,8 @@ func main() {
rfs.AddLocalFunc("save_yob", ussdHandlers.SaveYob) rfs.AddLocalFunc("save_yob", ussdHandlers.SaveYob)
rfs.AddLocalFunc("save_offerings", ussdHandlers.SaveOfferings) rfs.AddLocalFunc("save_offerings", ussdHandlers.SaveOfferings)
rfs.AddLocalFunc("quit_with_balance", ussdHandlers.QuitWithBalance) rfs.AddLocalFunc("quit_with_balance", ussdHandlers.QuitWithBalance)
rfs.AddLocalFunc("reset_unlocked", ussdHandlers.ResetAccountAuthorized) rfs.AddLocalFunc("reset_account_authorized", ussdHandlers.ResetAccountAuthorized)
rfs.AddLocalFunc("reset_unlock_for_update", ussdHandlers.ResetAllowUpdate) rfs.AddLocalFunc("reset_allow_update", ussdHandlers.ResetAllowUpdate)
rfs.AddLocalFunc("get_profile_info", ussdHandlers.GetProfileInfo) rfs.AddLocalFunc("get_profile_info", ussdHandlers.GetProfileInfo)
rfs.AddLocalFunc("verify_yob", ussdHandlers.VerifyYob) rfs.AddLocalFunc("verify_yob", ussdHandlers.VerifyYob)
rfs.AddLocalFunc("reset_incorrect_date_format", ussdHandlers.ResetIncorrectYob) rfs.AddLocalFunc("reset_incorrect_date_format", ussdHandlers.ResetIncorrectYob)

View File

@ -1,6 +1,6 @@
LOAD reset_unlocked 16 LOAD reset_account_authorized 16
LOAD reset_unlock_for_update 0 LOAD reset_allow_update 0
RELOAD reset_unlock_for_update RELOAD reset_allow_update
MOUT edit_name 1 MOUT edit_name 1
MOUT edit_gender 2 MOUT edit_gender 2
MOUT edit_yob 3 MOUT edit_yob 3

View File

@ -1,4 +1,4 @@
LOAD reset_unlock_for_update 0 LOAD reset_allow_update 0
MOUT profile 1 MOUT profile 1
MOUT change_language 2 MOUT change_language 2
MOUT check_balance 3 MOUT check_balance 3

View File

@ -1,4 +1,4 @@
LOAD unlock_account 0 LOAD authorize_account 0
HALT HALT
RELOAD unlock_account RELOAD authorize_account
MOVE _ MOVE _

View File

@ -6,9 +6,10 @@ MAP get_sender
MOUT back 0 MOUT back 0
MOUT quit 9 MOUT quit 9
HALT HALT
LOAD unlock_account 1 LOAD authorize_account 1
RELOAD unlock_account RELOAD authorize_account
CATCH incorrect_pin 15 1 CATCH incorrect_pin 15 1
INCMP _ 0 INCMP _ 0
INCMP quit 9 INCMP quit 9
MOVE transaction_initiated MOVE transaction_initiated