app: Fix the login button not re-enabling after failed login

This commit is contained in:
Valentin Tolmer 2021-10-29 00:13:34 +09:00 committed by nitnelave
parent 63f4bf95d2
commit 026a2f7eb0

View File

@ -78,6 +78,7 @@ impl LoginForm {
// simple one to the user.
ConsoleService::error(&format!("Invalid username or password: {}", e));
self.error = Some(anyhow!("Invalid username or password"));
self.task = None;
return Ok(true);
}
Ok(l) => l,