ing
This commit is contained in:
parent
df15cd56a9
commit
5bd50ed53b
|
@ -18,29 +18,27 @@ export class MemberService {
|
||||||
}
|
}
|
||||||
|
|
||||||
public signin(email: string, password: string): Observable<any> {
|
public signin(email: string, password: string): Observable<any> {
|
||||||
const body = {
|
return this.restService.request<any>('post', '/account/signin', {
|
||||||
|
body: {
|
||||||
signinId: email,
|
signinId: email,
|
||||||
signinPw: password,
|
signinPw: password,
|
||||||
};
|
},
|
||||||
|
|
||||||
return this.restService.request<any>('post', '/account/signin', {
|
|
||||||
body: body,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public signin_cookie(authToken: string): Observable<DomainMember> {
|
public signin_cookie(authToken: string): Observable<DomainMember> {
|
||||||
const body = {
|
|
||||||
authToken: authToken,
|
|
||||||
};
|
|
||||||
|
|
||||||
return this.restService.request<DomainMember>('post', '/account/signin_cookie', {
|
return this.restService.request<DomainMember>('post', '/account/signin_cookie', {
|
||||||
body: body,
|
body: {
|
||||||
|
authToken: authToken,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public signup(member: Member): Observable<Member> {
|
public signup(member: Member): Observable<Member> {
|
||||||
return this.restService.request<Member>('post', '/account/signup', {
|
return this.restService.request<Member>('post', '/account/signup', {
|
||||||
body: member,
|
body: {
|
||||||
|
member: member,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user