Compare commits
No commits in common. "4d72ae0313ad78052979c0ddcfbe25de94185fd3" and "64fba916700508d8f3ab6c1ba29ca4b8d1c5c618" have entirely different histories.
4d72ae0313
...
64fba91670
@ -128,7 +128,6 @@ func (ls *LocalHandlerService) GetHandler(accountService remote.AccountServiceIn
|
|||||||
ls.DbRs.AddLocalFunc("view_statement", ussdHandlers.ViewTransactionStatement)
|
ls.DbRs.AddLocalFunc("view_statement", ussdHandlers.ViewTransactionStatement)
|
||||||
ls.DbRs.AddLocalFunc("update_all_profile_items", ussdHandlers.UpdateAllProfileItems)
|
ls.DbRs.AddLocalFunc("update_all_profile_items", ussdHandlers.UpdateAllProfileItems)
|
||||||
ls.DbRs.AddLocalFunc("set_back", ussdHandlers.SetBack)
|
ls.DbRs.AddLocalFunc("set_back", ussdHandlers.SetBack)
|
||||||
ls.DbRs.AddLocalFunc("show_blocked_account", ussdHandlers.ShowBlockedAccount)
|
|
||||||
|
|
||||||
return ussdHandlers, nil
|
return ussdHandlers, nil
|
||||||
}
|
}
|
||||||
|
|||||||
@ -878,16 +878,6 @@ func (h *Handlers) QuitWithHelp(ctx context.Context, sym string, input []byte) (
|
|||||||
return res, nil
|
return res, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// ShowBlockedAccount displays a message after an account has been blocked and how to reach support.
|
|
||||||
func (h *Handlers) ShowBlockedAccount(ctx context.Context, sym string, input []byte) (resource.Result, error) {
|
|
||||||
var res resource.Result
|
|
||||||
code := codeFromCtx(ctx)
|
|
||||||
l := gotext.NewLocale(translationDir, code)
|
|
||||||
l.AddDomain("default")
|
|
||||||
res.Content = l.Get("Your account has been locked.For help on how to unblock your account,contact support at: 0757628885")
|
|
||||||
return res, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// VerifyYob verifies the length of the given input.
|
// VerifyYob verifies the length of the given input.
|
||||||
func (h *Handlers) VerifyYob(ctx context.Context, sym string, input []byte) (resource.Result, error) {
|
func (h *Handlers) VerifyYob(ctx context.Context, sym string, input []byte) (resource.Result, error) {
|
||||||
var res resource.Result
|
var res resource.Result
|
||||||
@ -2124,7 +2114,6 @@ func (h *Handlers) UpdateAllProfileItems(ctx context.Context, sym string, input
|
|||||||
return res, nil
|
return res, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// countIncorrectPINAttempts keeps track of the number of incorrect PIN attempts
|
|
||||||
func (h *Handlers) countIncorrectPINAttempts(ctx context.Context, sessionId string) error {
|
func (h *Handlers) countIncorrectPINAttempts(ctx context.Context, sessionId string) error {
|
||||||
var pinAttemptsCount uint8
|
var pinAttemptsCount uint8
|
||||||
store := h.userdataStore
|
store := h.userdataStore
|
||||||
@ -2153,7 +2142,6 @@ func (h *Handlers) countIncorrectPINAttempts(ctx context.Context, sessionId stri
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// resetIncorrectPINAttempts resets the number of incorrect PIN attempts after a correct PIN entry
|
|
||||||
func (h *Handlers) resetIncorrectPINAttempts(ctx context.Context, sessionId string) error {
|
func (h *Handlers) resetIncorrectPINAttempts(ctx context.Context, sessionId string) error {
|
||||||
store := h.userdataStore
|
store := h.userdataStore
|
||||||
currentWrongPinAttempts, err := store.ReadEntry(ctx, sessionId, common.DATA_INCORRECT_PIN_ATTEMPTS)
|
currentWrongPinAttempts, err := store.ReadEntry(ctx, sessionId, common.DATA_INCORRECT_PIN_ATTEMPTS)
|
||||||
|
|||||||
1
services/registration/blocked_account
Normal file
1
services/registration/blocked_account
Normal file
@ -0,0 +1 @@
|
|||||||
|
Your account has been locked.For help on how to unblock your account,contact support at: 0757628885
|
||||||
@ -1,2 +1,3 @@
|
|||||||
LOAD show_blocked_account 0
|
MOUT quit 9
|
||||||
HALT
|
HALT
|
||||||
|
INCMP quit 9
|
||||||
|
|||||||
1
services/registration/blocked_account_swa
Normal file
1
services/registration/blocked_account_swa
Normal file
@ -0,0 +1 @@
|
|||||||
|
Akaunti yako imefungwa.Kwa usaidizi wa jinsi ya kufungua akaunti yako, wasiliana na usaidizi kwa: 0757628885
|
||||||
@ -10,9 +10,6 @@ msgstr "Asante kwa kutumia huduma ya Sarafu. Kwaheri!"
|
|||||||
msgid "For more help,please call: 0757628885"
|
msgid "For more help,please call: 0757628885"
|
||||||
msgstr "Kwa usaidizi zaidi,piga: 0757628885"
|
msgstr "Kwa usaidizi zaidi,piga: 0757628885"
|
||||||
|
|
||||||
msgid "Your account has been locked.For help on how to unblock your account,contact support at: 0757628885"
|
|
||||||
msgstr "Akaunti yako imefungwa.Kwa usaidizi wa jinsi ya kufungua akaunti yako, wasiliana na usaidizi kwa: 0757628885"
|
|
||||||
|
|
||||||
msgid "Balance: %s\n"
|
msgid "Balance: %s\n"
|
||||||
msgstr "Salio: %s\n"
|
msgstr "Salio: %s\n"
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user