Skip to content

Commit

Permalink
Fix password sent (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
idormenco authored Dec 4, 2020
1 parent db1fef2 commit 05d629a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ <h2 class="d-inline h4" *ngIf="pageState === 'edit'">{{ 'OBSERVER_EDIT' | transl
</div>

<div class="form-group">
<label for="password">{{ 'PASSWORD' | translate }}</label>
<input formControlName="pin" id="password" type="text" class="form-control" [placeholder]="'TYPE' | translate" />
<label for="pin">{{ 'PASSWORD' | translate }}</label>
<input formControlName="pin" id="pin" type="text" class="form-control" [placeholder]="'TYPE' | translate" />
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class ObserverProfileComponent implements OnInit, OnDestroy {
private addNewObserver(values: { [k: string]: string }) {
const observerToAdd: Observer = new Observer({});
observerToAdd.phone = values.phone;
observerToAdd.pin = values.password;
observerToAdd.pin = values.pin;
observerToAdd.name = values.name;

this.observerService.addNewObserver(observerToAdd).subscribe(() => {
Expand Down

1 comment on commit 05d629a

@vercel
Copy link

@vercel vercel bot commented on 05d629a Dec 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.