Correct validation API call
This commit is contained in:
parent
55ee54cd4f
commit
916d4a0088
1 changed files with 2 additions and 1 deletions
|
@ -123,7 +123,8 @@ export class UserService{
|
||||||
}
|
}
|
||||||
|
|
||||||
validateUser(pinString:string){
|
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) => {
|
subscribe((responseData) => {
|
||||||
if (responseData.status == 202) {
|
if (responseData.status == 202) {
|
||||||
console.log('Pin validated!');
|
console.log('Pin validated!');
|
||||||
|
|
Loading…
Reference in a new issue