fix: show login failed error message
This commit is contained in:
parent
3717a34da6
commit
15a2963f7e
3 changed files with 8 additions and 1 deletions
|
|
@ -73,7 +73,12 @@ fn LoginForm() -> impl IntoView {
|
|||
navigate(&dest, Default::default());
|
||||
}
|
||||
Err(e) => {
|
||||
error.set(e);
|
||||
let msg = if e.is_empty() {
|
||||
t_string!(i18n, login_failed).to_string()
|
||||
} else {
|
||||
e
|
||||
};
|
||||
error.set(msg);
|
||||
pending.set(false);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue