mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-28 22:08:34 +00:00
TRA-4202 role management (#688)
* WIP * wip * Update keto.yml, socket_routes.go, and 12 more files... * fixes and docs * Update api.js * Update auth.go and api.js * Update user_role_provider.go * Update config_routes.go and api.js * Update consts.go
This commit is contained in:
@@ -38,7 +38,7 @@ export const InstallPage: React.FC<InstallPageProps> = ({onFirstLogin}) => {
|
||||
|
||||
try {
|
||||
setIsLoading(true);
|
||||
await api.register(adminUsername, password);
|
||||
await api.setupAdminUser(password);
|
||||
if (!await api.isAuthenticationNeeded()) {
|
||||
setEntPage(Page.Traffic);
|
||||
onFirstLogin();
|
||||
@@ -50,6 +50,8 @@ export const InstallPage: React.FC<InstallPageProps> = ({onFirstLogin}) => {
|
||||
toast.error(message.text);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
toast.error("An unknown error has occured");
|
||||
}
|
||||
console.error(e);
|
||||
} finally {
|
||||
|
Reference in New Issue
Block a user