This commit is contained in:
Bastian Wagner
2024-09-12 15:54:30 +02:00
parent f9b151d914
commit 3bff98503e

View File

@@ -66,7 +66,7 @@ export class LoginComponent {
this.client_id = params.client_id;
if (!this.client_id) { return; }
console.log(params);
this.http.get<any>('api/', {
params
}).subscribe({
@@ -82,7 +82,7 @@ export class LoginComponent {
login() {
this.isLoading = true;
const url = this.client_id ? `api/authorize?client_id=${this.client_id}` : 'api/app/authorize';
const url = this.client_id ? `api/login?client_id=${this.client_id}` : 'api/app/authorize';
console.log(url, this.client_id)
this.http.post(url, this.loginForm.value).
pipe(