Update but also disable sign-up component.

We're not ready yet and certainly not using DeSo's.
This commit is contained in:
Daniel Krol 2022-05-05 13:53:00 -04:00
parent 340e6ccaa3
commit c69894806c

View file

@ -1,6 +1,5 @@
import {Component, OnDestroy, OnInit} from '@angular/core'; import {Component, OnDestroy, OnInit} from '@angular/core';
import {EntropyService} from '../entropy.service'; import {EntropyService} from '../entropy.service';
import {CryptoService} from '../crypto.service';
import {AccountService} from '../account.service'; import {AccountService} from '../account.service';
import {IdentityService} from '../identity.service'; import {IdentityService} from '../identity.service';
import {GlobalVarsService} from '../global-vars.service'; import {GlobalVarsService} from '../global-vars.service';
@ -19,7 +18,7 @@ export class SignUpComponent implements OnInit, OnDestroy {
seedCopied = false; seedCopied = false;
mnemonicCheck = ''; mnemonicCheck = '';
extraTextCheck = ''; extraTextCheck = '';
publicKeyAdded = ''; accountNameAdded = '';
// Advanced tab // Advanced tab
showMnemonicError = false; showMnemonicError = false;
@ -32,7 +31,6 @@ export class SignUpComponent implements OnInit, OnDestroy {
constructor( constructor(
public entropyService: EntropyService, public entropyService: EntropyService,
private cryptoService: CryptoService,
private accountService: AccountService, private accountService: AccountService,
private identityService: IdentityService, private identityService: IdentityService,
public globalVars: GlobalVarsService, public globalVars: GlobalVarsService,
@ -81,17 +79,23 @@ export class SignUpComponent implements OnInit, OnDestroy {
////// STEP TWO BUTTONS /////// ////// STEP TWO BUTTONS ///////
stepTwoNext(): void { stepTwoNext(): void {
// TODO - signup for LBRY will be very different from DeSo. We'll need to
// make a wallet, not just "users". And other things happen.
throw 'signup not implemented'
/*
const network = this.globalVars.network; const network = this.globalVars.network;
const mnemonic = this.mnemonicCheck; const mnemonic = this.mnemonicCheck;
const extraText = this.extraTextCheck; const extraText = this.extraTextCheck;
const keychain = this.cryptoService.mnemonicToKeychain(mnemonic, extraText); const keychain = this.cryptoService.mnemonicToKeychain(mnemonic, extraText);
this.publicKeyAdded = this.accountService.addUser(keychain, mnemonic, extraText, network); this.accountNameAdded = this.accountService.addUser(keychain, mnemonic, extraText, network);
this.accountService.setAccessLevel( this.accountService.setAccessLevel(
this.publicKeyAdded, this.globalVars.hostname, this.globalVars.accessLevelRequest); this.accountNameAdded, this.globalVars.hostname, this.globalVars.accessLevelRequest);
this.login(); this.login();
*/
} }
stepTwoBack(): void { stepTwoBack(): void {
@ -102,8 +106,8 @@ export class SignUpComponent implements OnInit, OnDestroy {
login(): void { login(): void {
this.identityService.login({ this.identityService.login({
users: this.accountService.getEncryptedUsers(), accounts: this.accountService.getPublicAccounts(),
publicKeyAdded: this.publicKeyAdded, accountNameAdded: this.accountNameAdded,
signedUp: true, signedUp: true,
}); });
} }