signup parameter pw added
This commit is contained in:
parent
c790051671
commit
9d03b91263
|
@ -21,8 +21,8 @@ export function mapStateToProps(state: any): SignUpStateProps {
|
||||||
|
|
||||||
export function mapDispatchToProps(dispatch: Dispatch<any>): SignUpDispatchProps {
|
export function mapDispatchToProps(dispatch: Dispatch<any>): SignUpDispatchProps {
|
||||||
return {
|
return {
|
||||||
onSignUp: (member: Member, pw: string) => {
|
onSignUp: (member: Member) => {
|
||||||
dispatch(asyncRequestActions.request('MemberService', 'signup', signupActions.REQUEST, JSON.stringify(member), pw ));
|
dispatch(asyncRequestActions.request('MemberService', 'signup', signupActions.REQUEST, JSON.stringify(member)));
|
||||||
// dispatch(signupActions.request(member));
|
// dispatch(signupActions.request(member));
|
||||||
},
|
},
|
||||||
onRedirectHome: () => {
|
onRedirectHome: () => {
|
||||||
|
|
|
@ -14,7 +14,7 @@ export interface StateProps {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DispatchProps {
|
export interface DispatchProps {
|
||||||
onSignUp?(member: Member, pw: string): void;
|
onSignUp?(member: Member): void;
|
||||||
onRedirectHome():void;
|
onRedirectHome():void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -123,7 +123,7 @@ export class SignUp extends React.Component<Props, State> {
|
||||||
member.phone = this.state.phone;
|
member.phone = this.state.phone;
|
||||||
// member.status = MemberStatus.NOAUTH;
|
// member.status = MemberStatus.NOAUTH;
|
||||||
|
|
||||||
this.props.onSignUp(member, member.pw);
|
this.props.onSignUp(member);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user