fix
This commit is contained in:
@@ -66,7 +66,7 @@ export class LoginComponent {
|
|||||||
this.client_id = params.client_id;
|
this.client_id = params.client_id;
|
||||||
|
|
||||||
if (!this.client_id) { return; }
|
if (!this.client_id) { return; }
|
||||||
|
console.log(params);
|
||||||
this.http.get<any>('api/', {
|
this.http.get<any>('api/', {
|
||||||
params
|
params
|
||||||
}).subscribe({
|
}).subscribe({
|
||||||
@@ -82,7 +82,7 @@ export class LoginComponent {
|
|||||||
|
|
||||||
login() {
|
login() {
|
||||||
this.isLoading = true;
|
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)
|
console.log(url, this.client_id)
|
||||||
this.http.post(url, this.loginForm.value).
|
this.http.post(url, this.loginForm.value).
|
||||||
pipe(
|
pipe(
|
||||||
|
|||||||
Reference in New Issue
Block a user