Correct validation API call

This commit is contained in:
Rene Vergara 2022-05-20 10:40:49 -05:00
parent 55ee54cd4f
commit 916d4a0088
Signed by: pitmutt
GPG key ID: 65122AD495A7F5B2

View file

@ -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!');