Compare commits

...

9 Commits

14 changed files with 28 additions and 14 deletions

View File

@ -130,6 +130,8 @@ func (ls *LocalHandlerService) GetHandler(accountService remote.AccountService)
ls.DbRs.AddLocalFunc("confirm_new_alias", appHandlers.ConfirmNewAlias)
ls.DbRs.AddLocalFunc("check_account_created", appHandlers.CheckAccountCreated)
ls.DbRs.AddLocalFunc("reset_api_call_failure", appHandlers.ResetApiCallFailure)
ls.DbRs.AddLocalFunc("save_alias_hint", appHandlers.SaveAliasHint)
ls.first = appHandlers.Init

View File

@ -0,0 +1,4 @@
CATCH incorrect_pin flag_incorrect_pin 1
CATCH pin_entry flag_allow_update 0
LOAD request_custom_alias 0
MOVE confirm_new_alias

View File

@ -0,0 +1 @@
Cancel

View File

@ -0,0 +1 @@
Ghairi

View File

@ -1,2 +1,2 @@
Your full alias will be: {{.get_suggested_alias}}
Please enter your PIN to confirm:
Please choose `Ok` to accept or `Cancel` to stop:

View File

@ -1,12 +1,10 @@
LOAD reset_invalid_pin 6
RELOAD reset_invalid_pin
LOAD get_suggested_alias 0
RELOAD get_suggested_alias
MAP get_suggested_alias
MOUT back 0
MOUT ok 1
MOUT cancel 2
MOUT quit 9
HALT
INCMP _ 0
RELOAD authorize_account
CATCH incorrect_pin flag_incorrect_pin 1
CATCH invalid_pin flag_invalid_pin 1
CATCH update_alias flag_allow_update 1
INCMP update_alias 1
INCMP ^ 2
INCMP quit 9

View File

@ -1,2 +1,2 @@
Lakabu yako kamili itakuwa: {{.get_suggested_alias}}
Tafadhali weka PIN yako ili kuthibitisha:
Tafadhali chagua `Sawa` kukubali au `Ghairi` kusitisha:

View File

@ -0,0 +1 @@
The alias hint is invalid. It should only contain letters, with no numbers or special characters.

View File

@ -0,0 +1,5 @@
MOUT retry 1
MOUT quit 9
HALT
INCMP _ 1
INCMP quit 9

View File

@ -0,0 +1 @@
Kichocheo cha alias si halali. Ni herufi pekee zinazoruhusiwa, hakuna namba au alama.

View File

@ -2,8 +2,6 @@ LOAD get_current_profile_info 0
MAP get_current_profile_info
MOUT back 0
HALT
LOAD save_alias_hint 0
INCMP _ 0
LOAD request_custom_alias 0
RELOAD request_custom_alias
CATCH api_failure flag_api_call_error 1
INCMP confirm_new_alias *
INCMP allow_request_alias *

View File

@ -0,0 +1 @@
Ok

View File

@ -0,0 +1 @@
Sawa

View File

@ -32,3 +32,4 @@ flag,flag_account_blocked,38,this is set when an account has been blocked after
flag,flag_invalid_pin,39,this is set when the given PIN is invalid(is less than or more than 4 digits)
flag,flag_alias_set,40,this is set when an account alias has been assigned to a user
flag,flag_account_pin_reset,41,this is set on an account when an admin triggers a PIN reset for them
flag,flag_invalid_alias_hint,42,this is set when the provided alias hint fails to meet the required criteria.
1 flag flag_language_set 8 checks whether the user has set their prefered language
32 flag flag_invalid_pin 39 this is set when the given PIN is invalid(is less than or more than 4 digits)
33 flag flag_alias_set 40 this is set when an account alias has been assigned to a user
34 flag flag_account_pin_reset 41 this is set on an account when an admin triggers a PIN reset for them
35 flag flag_invalid_alias_hint 42 this is set when the provided alias hint fails to meet the required criteria.