Modify login routing

This commit is contained in:
Rene Vergara 2022-01-18 16:40:36 -06:00
parent 36242cffb9
commit 0044f25edb
3 changed files with 6 additions and 2 deletions

View file

@ -124,7 +124,7 @@ var blockInterval = setInterval( function() {
console.log(err);
}
});
if (txData.confirmations >= 6 ) {
if (txData.confirmations >= 2 ) {
usermodel.findOne({address: address, session: session, blocktime: blocktime}).then(function(doc){
if (doc == null){
console.log('User not found', session, blocktime);

View file

@ -2,6 +2,7 @@ import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { ViewerComponent } from './viewer/viewer.component';
import { LoginComponent } from './login/login.component';
import { BusinessComponent } from './business/business.component';
import { ListOrdersComponent } from './listorders/listorders.component';
import { AuthGuardService } from './auth-guard.service';
import { NodeResolverService } from './node-resolver.service';
@ -11,6 +12,7 @@ const routes: Routes = [
//{ path: 'create', component: PostCreateComponent, canActivate: [AuthGuardService]},
{ path: 'shop', component: ViewerComponent, canActivate: [AuthGuardService]},
{ path: 'orders', component: ListOrdersComponent, canActivate: [AuthGuardService]},
{ path: 'biz', component: BusinessComponent},
{ path: 'login', component: LoginComponent, resolve: { response: NodeResolverService}}
];

View file

@ -31,6 +31,7 @@ import { SettingsComponent } from './settings/settings.component';
import { ListOrdersComponent } from './listorders/listorders.component';
import { ScanComponent } from './scan/scan.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { BusinessComponent } from './business/business.component';
@NgModule({
declarations: [
@ -47,7 +48,8 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
CheckoutComponent,
SettingsComponent,
ScanComponent,
ListOrdersComponent
ListOrdersComponent,
BusinessComponent
],
imports: [
BrowserModule,