ing
This commit is contained in:
parent
ea812f6e54
commit
7d17ca4880
|
@ -6,6 +6,8 @@ import { MemberModifyPasswordComponent } from './member-modify-password.componen
|
|||
import { MemberProfileComponent } from './member-profile.component';
|
||||
import { MemberPolicyComponent } from './member-policy.component';
|
||||
import { MemberTotpComponent } from './member-totp.component';
|
||||
import { MemberConfirmResetPasswordComponent } from './member-confirm-reset-password.component';
|
||||
import { MemberConfirmSignupComponent } from './member-confirm-signup.component';
|
||||
|
||||
export const COMPONENTS = [
|
||||
MemberSigninComponent,
|
||||
|
@ -16,4 +18,6 @@ export const COMPONENTS = [
|
|||
MemberModifyPasswordComponent,
|
||||
MemberPolicyComponent,
|
||||
MemberTotpComponent,
|
||||
MemberConfirmResetPasswordComponent,
|
||||
MemberConfirmSignupComponent,
|
||||
];
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
<div>
|
||||
Your email has been verified. When you click the link button below, it goes to the password change screen.
|
||||
</div>
|
|
@ -0,0 +1,11 @@
|
|||
import {Component, OnInit} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'of-member-confirm-reset-password',
|
||||
templateUrl: './member-confirm-reset-password.component.html',
|
||||
})
|
||||
export class MemberConfirmResetPasswordComponent implements OnInit {
|
||||
constructor() { }
|
||||
ngOnInit(): void {
|
||||
}
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
<div>
|
||||
Your email has been verified. Go to signin when you click the link button below.
|
||||
</div>
|
|
@ -0,0 +1,11 @@
|
|||
import {Component, OnInit} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'of-member-confirm-signup',
|
||||
templateUrl: './member-confirm-signup.component.html',
|
||||
})
|
||||
export class MemberConfirmSignupComponent implements OnInit {
|
||||
constructor() { }
|
||||
ngOnInit(): void {
|
||||
}
|
||||
}
|
|
@ -6,6 +6,8 @@ import { MemberResetPasswordContainerComponent } from './member-reset-password-c
|
|||
import { MemberModifyPasswordContainerComponent } from './member-modify-password-container.component';
|
||||
import { MemberPolicyContainerComponent } from './member-policy-container.component';
|
||||
import { MemberProfileContainerComponent } from './member-profile-container.component';
|
||||
import {MemberConfirmSignupContainerComponent} from './member-confirm-signup-container.component';
|
||||
import {MemberConfirmResetPasswordContainerComponent} from './member-confirm-reset-password-container.component';
|
||||
|
||||
export const CONTAINERS = [
|
||||
MemberSigninContainerComponent,
|
||||
|
@ -16,4 +18,6 @@ export const CONTAINERS = [
|
|||
MemberModifyPasswordContainerComponent,
|
||||
MemberPolicyContainerComponent,
|
||||
MemberProfileContainerComponent,
|
||||
MemberConfirmSignupContainerComponent,
|
||||
MemberConfirmResetPasswordContainerComponent,
|
||||
];
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
<of-member-confirm-reset-password></of-member-confirm-reset-password>
|
|
@ -0,0 +1,20 @@
|
|||
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
|
||||
import {Store} from '@ngrx/store';
|
||||
|
||||
@Component({
|
||||
selector: 'of-member-confirm-reset-password-container',
|
||||
templateUrl: './member-confirm-reset-password-container.component.html',
|
||||
})
|
||||
export class MemberConfirmResetPasswordContainerComponent implements OnInit {
|
||||
@Input() token: string;
|
||||
@Output() signin = new EventEmitter();
|
||||
@Output() modifyPassword = new EventEmitter();
|
||||
|
||||
constructor(
|
||||
private store: Store<any>,
|
||||
) {
|
||||
|
||||
}
|
||||
ngOnInit(): void {
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
<of-member-confirm-signup></of-member-confirm-signup>
|
|
@ -0,0 +1,20 @@
|
|||
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
|
||||
import {Store} from '@ngrx/store';
|
||||
|
||||
@Component({
|
||||
selector: 'of-member-confirm-signup-container',
|
||||
templateUrl: './member-confirm-signup-container.component.html',
|
||||
})
|
||||
export class MemberConfirmSignupContainerComponent implements OnInit {
|
||||
@Input() token: string;
|
||||
@Output() signin = new EventEmitter();
|
||||
|
||||
constructor(
|
||||
private store: Store<any>,
|
||||
) {
|
||||
|
||||
|
||||
}
|
||||
ngOnInit(): void {
|
||||
}
|
||||
}
|
|
@ -19,8 +19,8 @@ const routes: Routes = [
|
|||
{ path: 'signup', component: SignupPageComponent },
|
||||
{ path: 'reset-password', component: ResetPasswordPageComponent },
|
||||
{ path: 'modify-password', component: ModifyPasswordPageComponent },
|
||||
// { path: 'confirm-signup', component: ConfirmSignupPageComponent },
|
||||
// { path: 'confirm-reset-password', component: ConfirmResetPasswordPageComponent }
|
||||
{ path: 'confirm-signup', component: ConfirmSignupPageComponent },
|
||||
{ path: 'confirm-reset-password', component: ConfirmResetPasswordPageComponent }
|
||||
]
|
||||
}
|
||||
];
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
<div class="ui-g">
|
||||
<div class="ui-g-12 ui-md-9 ui-lg-7">
|
||||
<!--<of-member-reset-password-container (signin)="onSignin()" (signup)="onSignup()"></of-member-reset-password-container>-->
|
||||
<of-member-confirm-reset-password-container
|
||||
[token]="token"
|
||||
(signin)="onSignin()"
|
||||
(modifyPassword)="onModifyPassword()"
|
||||
></of-member-confirm-reset-password-container>
|
||||
</div>
|
||||
<div class="ui-g-12 ui-md-3 ui-lg-5 login-descript">
|
||||
<table class="login-table">
|
||||
|
|
|
@ -15,7 +15,12 @@ export class ConfirmResetPasswordPageComponent implements OnInit {
|
|||
) { }
|
||||
|
||||
ngOnInit() {
|
||||
this.token = this.activatedRoute.snapshot.queryParams['token'] || '/';
|
||||
this.token = this.activatedRoute.snapshot.queryParams['token'];
|
||||
if (this.token === '' || this.token === null || this.token === undefined ) {
|
||||
// warning message print
|
||||
console.log('warning message print');
|
||||
this.router.navigate(['/']);
|
||||
}
|
||||
}
|
||||
|
||||
onModifyPassword() {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="ui-g">
|
||||
<div class="ui-g-12 ui-md-9 ui-lg-7">
|
||||
<!--<of-member-modify-password-container (signin)="onSignin()"></of-member-modify-password-container>-->
|
||||
<of-member-confirm-signup-container [token]="token" (signin)="onSignin()"></of-member-confirm-signup-container>
|
||||
</div>
|
||||
<div class="ui-g-12 ui-md-3 ui-lg-5 login-descript">
|
||||
<table class="login-table">
|
||||
|
|
|
@ -14,7 +14,12 @@ export class ConfirmSignupPageComponent implements OnInit {
|
|||
) { }
|
||||
|
||||
ngOnInit() {
|
||||
this.token = this.activatedRoute.snapshot.queryParams['token'] || '/';
|
||||
this.token = this.activatedRoute.snapshot.queryParams['token'];
|
||||
if (this.token === '' || this.token === null || this.token === undefined ) {
|
||||
// warning message print
|
||||
console.log('warning message print');
|
||||
this.router.navigate(['/']);
|
||||
}
|
||||
}
|
||||
|
||||
onSignin() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user