4.1 KiB
title | description | lead | date | lastmod | draft | images | menu | toc | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Creating an account | 2020-10-06T08:48:23+00:00 | 2020-10-06T08:48:23+00:00 | false |
|
true |
create account
key source file: ui/onboarding/GenKey.qml
listing accounts
key source file: ui/onboarding/GenKeyModal.qml
account list
key source file: src/app/onboarding/core.nim
key source file: src/status/accounts.nim
key source file: src/status/libstatus/accounts.nim
The list of accounts is a QAbstrastListModel defined as onboardingModel
(/src/app/onboarding/view.nim
) and populated in /src/app/onboarding/core.nim
choosing an account
key source file: src/app/onboarding/view.nim
key source file: src/app/onboarding/views/account_info.nim
key source file: src/status/libstatus/types.nim
onNextClick(selectedIndex)
is defined at GenKey.qml
and called in GenKeyModal.qml
when an account is selected
onboardingModel.setCurrentAccount(selectedIndex) // set this account in the model
createPasswordModal.open() // opens the next modal
create password
key source file: ui/onboarding/GenKey.qml
key source file: ui/onboarding/CreatePasswordModal.qml
key source file: src/app/onboarding/view.nim
key source file: src/status/accounts.nim
key source file: src/status/libstatus/accounts.nim
Calling onboardingModel.storeDerivedAndLogin(password)
will store that account and login, this will use the account set in the previous step
access existing key
key source file: ui/onboarding/EnterSeedPhraseModal.qml
key source file: ui/onboarding/ExistingKey.qml
key source file: ui/onboarding/CreatePasswordModal.qml
key source file: src/app/onboarding/view.nim
key source file: src/status/accounts.nim