2018-05-28 10:28:26 +00:00
|
|
|
import { Component, OnInit } from '@angular/core';
|
|
|
|
import { Router } from '@angular/router';
|
|
|
|
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
|
|
|
import {select, Store} from '@ngrx/store';
|
|
|
|
import {RPCClientError} from '@loafer/ng-rpc';
|
2018-05-28 11:16:00 +00:00
|
|
|
|
|
|
|
import * as MemberEntityStore from '../store/entity/member';
|
2018-05-28 10:28:26 +00:00
|
|
|
|
|
|
|
@Component({
|
2018-05-28 10:46:47 +00:00
|
|
|
selector: 'of-member-reset-password-container',
|
2018-05-28 11:16:00 +00:00
|
|
|
templateUrl: './member-reset-password-container.component.html',
|
2018-05-28 10:28:26 +00:00
|
|
|
})
|
|
|
|
export class MemberResetPasswordContainerComponent implements OnInit {
|
|
|
|
constructor(
|
2018-05-28 11:16:00 +00:00
|
|
|
private store: Store<any>,
|
|
|
|
) { }
|
2018-05-28 10:28:26 +00:00
|
|
|
|
|
|
|
ngOnInit() {
|
|
|
|
}
|
|
|
|
|
2018-05-28 11:16:00 +00:00
|
|
|
resetPassword(email: string) {
|
|
|
|
this.store.dispatch(new MemberEntityStore.ResetPassword(email));
|
2018-05-28 10:28:26 +00:00
|
|
|
}
|
|
|
|
}
|