fix
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user