Merge branch 'main' of https://github.com/Kareadita/Kavita-webui into feature/directories
This commit is contained in:
commit
82b8525878
3 changed files with 3 additions and 6 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// This interface is only used for login and storing/retreiving JWT from local storage
|
||||
export interface User {
|
||||
username: string;
|
||||
token: string;
|
||||
photoUrl?: string;
|
||||
roles: string[];
|
||||
}
|
||||
|
|
@ -20,12 +20,8 @@ export class MemberService {
|
|||
return this.httpClient.get<boolean>(this.baseUrl + 'admin/exists');
|
||||
}
|
||||
|
||||
updatePassword(newPassword: string) {
|
||||
// TODO: Implement update password (use JWT to assume role)
|
||||
}
|
||||
|
||||
deleteMember(username: string) {
|
||||
return this.httpClient.delete(this.baseUrl + 'admin/delete-user?username=' + username);
|
||||
return this.httpClient.delete(this.baseUrl + 'users/delete-user?username=' + username);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ const routes: Routes = [
|
|||
loadChildren: () => import('./admin/admin.module').then(m => m.AdminModule)
|
||||
},
|
||||
{path: 'library', component: LibraryComponent},
|
||||
{path: 'home', component: HomeComponent},
|
||||
{path: '**', component: HomeComponent, pathMatch: 'full'}
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue