Change page signin

This commit is contained in:
DwCay
2022-07-26 17:00:39 +03:00
parent fcb7d40ca5
commit 57e5dee442
4 changed files with 82 additions and 75 deletions

View File

@@ -31,8 +31,6 @@ class Store {
this.fetchNodeInfo()
this.generatePassPhrase()
reaction(() => this.keysArray, () => this.fetchSharedData())
onBecomeObserved(this, "decryptedUserData", () => this.fetchNewAccountData())
onBecomeObserved(this, "sharedData", () => this.fetchKeysArray())
@@ -82,6 +80,7 @@ class Store {
generatePassPhrase() {
this._passPhrase = passphrase.Mnemonic.generateMnemonic()
sessionStorage.setItem('passPhrase', this._passPhrase)
}
fetchSharedData() {
@@ -104,6 +103,7 @@ class Store {
savePastPassPhrase(phrase) {
this._passPhrase = phrase
sessionStorage.setItem('passPhrase', this._passPhrase)
}
saveDataRegistration(data) {
@@ -198,10 +198,6 @@ class Store {
return this._passPhrase
}
get convertPassPhraseToArray() {
return this._passPhrase.split(' ').map((item, index) => ({str:item, id:index}))
}
get accountData() {
return this._accountData
};