wip-flag-migration #28

Merged
Alfred-mk merged 44 commits from wip-flag-migration into master 2024-09-04 11:25:34 +02:00
3 changed files with 21 additions and 21 deletions
Showing only changes of commit c71f6e76d7 - Show all commits

View File

@ -48,7 +48,7 @@ func main() {
state.FlagDebugger.Register(models.USERFLAG_INVALID_AMOUNT, "INVALIDAMOUNT") state.FlagDebugger.Register(models.USERFLAG_INVALID_AMOUNT, "INVALIDAMOUNT")
state.FlagDebugger.Register(models.USERFLAG_ALLOW_UPDATE, "UNLOCKFORUPDATE") state.FlagDebugger.Register(models.USERFLAG_ALLOW_UPDATE, "UNLOCKFORUPDATE")
state.FlagDebugger.Register(models.USERFLAG_VALIDPIN, "VALIDPIN") state.FlagDebugger.Register(models.USERFLAG_VALIDPIN, "VALIDPIN")
state.FlagDebugger.Register(models.USERFLAG_VALIDPIN, "ACCOUNTUNLOCKED") state.FlagDebugger.Register(models.USERFLAG_ACCOUNT_AUTHORIZED, "ACCOUNT_AUTHORIZED")
state.FlagDebugger.Register(models.USERFLAG_ACCOUNT_CREATION_FAILED, "ACCOUNT_CREATION_FAILED") state.FlagDebugger.Register(models.USERFLAG_ACCOUNT_CREATION_FAILED, "ACCOUNT_CREATION_FAILED")
state.FlagDebugger.Register(models.USERFLAG_SINGLE_EDIT, "SINGLEEDIT") state.FlagDebugger.Register(models.USERFLAG_SINGLE_EDIT, "SINGLEEDIT")

View File

@ -5,18 +5,18 @@ import "git.defalsify.org/vise.git/state"
const ( const (
USERFLAG_LANGUAGE_SET = iota + state.FLAG_USERSTART USERFLAG_LANGUAGE_SET = iota + state.FLAG_USERSTART
USERFLAG_ACCOUNT_CREATED USERFLAG_ACCOUNT_CREATED
USERFLAG_ACCOUNT_CREATION_FAILED
USERFLAG_ACCOUNT_PENDING USERFLAG_ACCOUNT_PENDING
USERFLAG_ACCOUNT_SUCCESS USERFLAG_ACCOUNT_SUCCESS
USERFLAG_PINMISMATCH
USERFLAG_PIN_SET
USERFLAG_ACCOUNT_AUTHORIZED USERFLAG_ACCOUNT_AUTHORIZED
USERFLAG_INVALID_RECIPIENT USERFLAG_INVALID_RECIPIENT
USERFLAG_INVALID_RECIPIENT_WITH_INVITE USERFLAG_INVALID_RECIPIENT_WITH_INVITE
USERFLAG_INCORRECTPIN
USERFLAG_ALLOW_UPDATE
USERFLAG_INVALID_AMOUNT USERFLAG_INVALID_AMOUNT
USERFLAG_PIN_SET USERFLAG_INCORRECTPIN
USERFLAG_VALIDPIN USERFLAG_VALIDPIN
USERFLAG_PINMISMATCH USERFLAG_ALLOW_UPDATE
USERFLAG_INCORRECTDATEFORMAT
USERFLAG_ACCOUNT_CREATION_FAILED
USERFLAG_SINGLE_EDIT USERFLAG_SINGLE_EDIT
USERFLAG_INCORRECTDATEFORMAT
) )

View File

@ -1,16 +1,16 @@
flag,flag_language_set,8,checks whether the user has set their prefered language flag,flag_language_set,8,checks whether the user has set their prefered language
flag,flag_account_created,9,this is set when an account has been created on the API flag,flag_account_created,9,this is set when an account has been created on the API
flag,flag_account_pending,10,this is set when an account does not have a status of SUCCESS flag,flag_account_creation_failed,10,this is set when there's an error from the API during account creation
flag,flag_account_success,11,this is set when an account has a status of SUCCESS flag,flag_account_pending,11,this is set when an account does not have a status of SUCCESS
flag,flag_account_authorized,12,this is set to allow a user access guarded nodes after providing a correct PIN flag,flag_account_success,12,this is set when an account has a status of SUCCESS
flag,flag_invalid_recipient,13,this is set when the transaction recipient is invalid flag,flag_pin_mismatch,13,this is set when the confirmation PIN matches the initial PIN during registration
flag,flag_invalid_recipient_with_invite,14,this is set when the transaction recipient is valid but not on the platform flag,flag_pin_set,14,this is set when a newly registered user sets a PIN. This must be present for an account to access the main menu
flag,flag_incorrect_pin,15,this is set when the provided PIN is invalid or does not match the current account's PIN flag,flag_account_authorized,15,this is set to allow a user access guarded nodes after providing a correct PIN
flag,flag_allow_update,16,this is set to allow a user to update their profile data flag,flag_invalid_recipient,16,this is set when the transaction recipient is invalid
flag,flag_invalid_amount,17,this is set when the given transaction amount is invalid flag,flag_invalid_recipient_with_invite,17,this is set when the transaction recipient is valid but not on the platform
flag,flag_pin_set,18,this is set when a newly registered user sets a PIN. This must be present for an account to access the main menu flag,flag_invalid_amount,18,this is set when the given transaction amount is invalid
flag,flag_valid_pin,19,this is set when the given PIN is valid flag,flag_incorrect_pin,19,this is set when the provided PIN is invalid or does not match the current account's PIN
flag,flag_pin_mismatch,20,this is set when the confirmation PIN matches the initial PIN during registration flag,flag_valid_pin,20,this is set when the given PIN is valid
flag,flag_incorrect_date_format,21,this is set when the given year of birth is invalid flag,flag_allow_update,21,this is set to allow a user to update their profile data
flag,flag_account_creation_failed,22,this is set when there's an error from the API during account creation flag,flag_single_edit,22,this is set to allow a user to edit a single profile item such as year of birth
flag,flag_single_edit,23,this is set to allow a user to edit a single profile item such as year of birth flag,flag_incorrect_date_format,23,this is set when the given year of birth is invalid

1 flag flag_language_set 8 checks whether the user has set their prefered language
2 flag flag_account_created 9 this is set when an account has been created on the API
3 flag flag_account_creation_failed 10 this is set when there's an error from the API during account creation
4 flag flag_account_pending 11 this is set when an account does not have a status of SUCCESS
5 flag flag_account_success 12 this is set when an account has a status of SUCCESS
6 flag flag_pin_mismatch 13 this is set when the confirmation PIN matches the initial PIN during registration
7 flag flag_pin_set 14 this is set when a newly registered user sets a PIN. This must be present for an account to access the main menu
8 flag flag_account_authorized 15 this is set to allow a user access guarded nodes after providing a correct PIN
9 flag flag_invalid_recipient 16 this is set when the transaction recipient is invalid
10 flag flag_invalid_recipient_with_invite 17 this is set when the transaction recipient is valid but not on the platform
11 flag flag_invalid_amount 18 this is set when the given transaction amount is invalid
12 flag flag_incorrect_pin 19 this is set when the provided PIN is invalid or does not match the current account's PIN
13 flag flag_valid_pin 20 this is set when the given PIN is valid
14 flag flag_allow_update 21 this is set to allow a user to update their profile data
15 flag flag_single_edit 22 this is set to allow a user to edit a single profile item such as year of birth
16 flag flag_incorrect_date_format 23 this is set when the given year of birth is invalid