Skip to content
Snippets Groups Projects
Commit 54c1e202 authored by salazard's avatar salazard
Browse files

fix bugs

parent efe22d3e
Branches
No related tags found
1 merge request!80New signup
......@@ -85,14 +85,13 @@ export class AuthService {
return new HttpHeaders({ Authorization: 'Token ' + this.getToken() });
}
checkSignatureCharter(email: string) : Observable<boolean> {
return this.http.get<any>(this.mandatorySignatureUrl,, { params: email }).pipe(
checkSignatureCharter(email: any) : Observable<Boolean> {
return this.http.get<any>( this.mandatorySignatureUrl, { params: email }).pipe(
map((data: any) => {
return data}),
);
}
get isLoggedIn(): boolean {
if (this.user.get()) {
return true;
......
......@@ -284,7 +284,7 @@ export class EditDataComponent implements OnInit {
{id:"Travaux publics",name:"Travaux publics"},
{id:"Vente",name:"Vente"},
]
constructor(
private route: ActivatedRoute,
private personalDataService : PersonalDataService,
......
import { Component, OnInit } from '@angular/core';
import { StaticInjector } from '@angular/core/src/di/injector';
import { Observable, BehaviorSubject } from 'rxjs';
import { HttpClient } from '@angular/common/http';
@Component({
selector: 'app-student-charter',
......@@ -10,7 +13,7 @@ export class StudentCharterComponent implements OnInit {
state:boolean;
private studentCharterUrl = environment.apiUrl + '';
// private studentCharterUrl = environment.apiUrl + '';
constructor() { }
......@@ -23,10 +26,10 @@ export class StudentCharterComponent implements OnInit {
this.state=!this.state;
}
sendStudentSignatureCharter(email: string, state:boolean) : Observable<boolean> {
return this.http.post<any>(this.studentCharterUrl, { params: email, state }).pipe(
map(() => true
));
}
// sendStudentSignatureCharter(email: string, state:boolean) : Observable<boolean> {
// return this.http.post<any>(this.studentCharterUrl, { params: email, state }).pipe(
// map(() => true
// ));
// }
}
......@@ -27,7 +27,7 @@
<mat-form-field class="full-width">
<input matInput type="email" formControlName="email" placeholder="Adresse email" onkeyup="this.value = this.value.toLowerCase();" required>
<mat-hint>
Elle te servira d'identifiant de connexion.
Elle te servira d'idendddtifiant de connexion.
</mat-hint>
</mat-form-field>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment