kk
Size: a a a
kk
kk
kk
kk
C
C
А
PD
this.userService.signup(result)
.pipe(first())
.subscribe(
data => {
this.showSuccessRegistrationModal = true;
console.log(data);
},
error => {
this.errorDetail = 'Error: ' + error.error.message;
this.submitted = false;
console.log(error);
console.log(error.headers);
});
signup(user: any) {
return this.http.post<Observable<boolean»(this.getApiContext() + Globals.USER_URL, user, { observe: 'response' });
@ExceptionHandler(H2HLoginException.class)
public ResponseEntity<?> handleLoginError(H2HLoginException loginException){
final HttpHeaders responseHeaders = new HttpHeaders();
responseHeaders.add("Access-Control-Expose-Headers", "invalidLogin");
responseHeaders.add("Access-Control-Allow-Headers", "invalidLogin");
responseHeaders.add("invalidLogin", loginException.getParameters()[0].toString());
return ResponseEntity
.status(INTERNAL_SERVER_ERROR)
.headers(responseHeaders)
.body(loginException);
А
PD
PD
DM
DM
DM

DM

DM

ЮЮ
DP
ЮЮ