Modify login routing
This commit is contained in:
parent
36242cffb9
commit
0044f25edb
3 changed files with 6 additions and 2 deletions
|
@ -124,7 +124,7 @@ var blockInterval = setInterval( function() {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (txData.confirmations >= 6 ) {
|
if (txData.confirmations >= 2 ) {
|
||||||
usermodel.findOne({address: address, session: session, blocktime: blocktime}).then(function(doc){
|
usermodel.findOne({address: address, session: session, blocktime: blocktime}).then(function(doc){
|
||||||
if (doc == null){
|
if (doc == null){
|
||||||
console.log('User not found', session, blocktime);
|
console.log('User not found', session, blocktime);
|
||||||
|
|
|
@ -2,6 +2,7 @@ import { NgModule } from '@angular/core';
|
||||||
import { RouterModule, Routes } from '@angular/router';
|
import { RouterModule, Routes } from '@angular/router';
|
||||||
import { ViewerComponent } from './viewer/viewer.component';
|
import { ViewerComponent } from './viewer/viewer.component';
|
||||||
import { LoginComponent } from './login/login.component';
|
import { LoginComponent } from './login/login.component';
|
||||||
|
import { BusinessComponent } from './business/business.component';
|
||||||
import { ListOrdersComponent } from './listorders/listorders.component';
|
import { ListOrdersComponent } from './listorders/listorders.component';
|
||||||
import { AuthGuardService } from './auth-guard.service';
|
import { AuthGuardService } from './auth-guard.service';
|
||||||
import { NodeResolverService } from './node-resolver.service';
|
import { NodeResolverService } from './node-resolver.service';
|
||||||
|
@ -11,6 +12,7 @@ const routes: Routes = [
|
||||||
//{ path: 'create', component: PostCreateComponent, canActivate: [AuthGuardService]},
|
//{ path: 'create', component: PostCreateComponent, canActivate: [AuthGuardService]},
|
||||||
{ path: 'shop', component: ViewerComponent, canActivate: [AuthGuardService]},
|
{ path: 'shop', component: ViewerComponent, canActivate: [AuthGuardService]},
|
||||||
{ path: 'orders', component: ListOrdersComponent, canActivate: [AuthGuardService]},
|
{ path: 'orders', component: ListOrdersComponent, canActivate: [AuthGuardService]},
|
||||||
|
{ path: 'biz', component: BusinessComponent},
|
||||||
{ path: 'login', component: LoginComponent, resolve: { response: NodeResolverService}}
|
{ path: 'login', component: LoginComponent, resolve: { response: NodeResolverService}}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,7 @@ import { SettingsComponent } from './settings/settings.component';
|
||||||
import { ListOrdersComponent } from './listorders/listorders.component';
|
import { ListOrdersComponent } from './listorders/listorders.component';
|
||||||
import { ScanComponent } from './scan/scan.component';
|
import { ScanComponent } from './scan/scan.component';
|
||||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||||
|
import { BusinessComponent } from './business/business.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -47,7 +48,8 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||||
CheckoutComponent,
|
CheckoutComponent,
|
||||||
SettingsComponent,
|
SettingsComponent,
|
||||||
ScanComponent,
|
ScanComponent,
|
||||||
ListOrdersComponent
|
ListOrdersComponent,
|
||||||
|
BusinessComponent
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
|
|
Loading…
Reference in a new issue