From 916d4a0088e901956edcc05a7710186d7c203652 Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Fri, 20 May 2022 10:40:49 -0500 Subject: [PATCH] Correct validation API call --- src/app/user.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/user.service.ts b/src/app/user.service.ts index 93613f3..ebae554 100644 --- a/src/app/user.service.ts +++ b/src/app/user.service.ts @@ -123,7 +123,8 @@ export class UserService{ } validateUser(pinString:string){ - this.http.post(this.beUrl+'api/validateuser', {pin: pinString, session: this.dataStore.user.session}, {headers: this.reqHeaders, observe: 'response'}). + const params = new HttpParams().append('session', this.dataStore.user.session).append('pin', pinString); + this.http.post(this.beUrl+'api/validateuser', {}, {headers: this.reqHeaders, params: params, observe: 'response'}). subscribe((responseData) => { if (responseData.status == 202) { console.log('Pin validated!');