This is an automated email from the ASF dual-hosted git repository.
linxinyuan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/texera.git
The following commit(s) were added to refs/heads/main by this push:
new d55922e64a fix: display error notifications for incorrect login
credentials (#3721)
d55922e64a is described below
commit d55922e64a7bdd02cefd9117dcb59eb522356076
Author: Seongjin Yoon <[email protected]>
AuthorDate: Tue Sep 9 19:58:18 2025 -0700
fix: display error notifications for incorrect login credentials (#3721)
---
.../app/hub/component/about/local-login/local-login.component.ts | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/core/gui/src/app/hub/component/about/local-login/local-login.component.ts
b/core/gui/src/app/hub/component/about/local-login/local-login.component.ts
index b69901a076..90e30875e8 100644
--- a/core/gui/src/app/hub/component/about/local-login/local-login.component.ts
+++ b/core/gui/src/app/hub/component/about/local-login/local-login.component.ts
@@ -98,7 +98,8 @@ export class LocalLoginComponent implements OnInit {
.login(username, password)
.pipe(
catchError((e: unknown) => {
- this.notificationService.error((e as Error).message, { nzDuration:
10 });
+ const errorMessage = (e as Error)?.message || "Incorrect username or
password";
+ this.notificationService.error(errorMessage);
return throwError(() => e);
}),
untilDestroyed(this)
@@ -136,7 +137,8 @@ export class LocalLoginComponent implements OnInit {
.register(registerUsername, registerPassword)
.pipe(
catchError((e: unknown) => {
- this.notificationService.error((e as Error).message, { nzDuration:
10 });
+ const errorMessage = (e as Error)?.message || "Registration failed";
+ this.notificationService.error(errorMessage);
return throwError(() => e);
}),
untilDestroyed(this)