mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-04 12:05:35 +00:00
remove useless success toasts on login/signup
This commit is contained in:
@@ -33,7 +33,6 @@ export const InstallPage: React.FC<InstallPageProps> = ({onFirstLogin}) => {
|
|||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
await api.register(adminUsername, password);
|
await api.register(adminUsername, password);
|
||||||
if (!await api.isAuthenticationNeeded()) {
|
if (!await api.isAuthenticationNeeded()) {
|
||||||
toast.success("admin user created successfully");
|
|
||||||
setPage(Page.Traffic);
|
setPage(Page.Traffic);
|
||||||
onFirstLogin();
|
onFirstLogin();
|
||||||
}
|
}
|
||||||
|
@@ -22,7 +22,6 @@ const LoginPage: React.FC = () => {
|
|||||||
try {
|
try {
|
||||||
await api.login(username, password);
|
await api.login(username, password);
|
||||||
if (!await api.isAuthenticationNeeded()) {
|
if (!await api.isAuthenticationNeeded()) {
|
||||||
toast.success("Logged in successfully");
|
|
||||||
setPage(Page.Traffic);
|
setPage(Page.Traffic);
|
||||||
} else {
|
} else {
|
||||||
toast.error("Invalid credentials");
|
toast.error("Invalid credentials");
|
||||||
|
Reference in New Issue
Block a user