Stabilize frontend login. Make chat messages multiline.

This commit is contained in:
Shivering Ocelot committed 2025-05-31 13:33:42 -05:00
1 parent 5bbdfe8747
commit 3f37f727af
6 files changed
+71 -31

No files matched your search

+8 -2
View File
@@ -44,12 +44,18 @@ class _UserCheckerState extends State<UserChecker> {
}
void _handleLogin(String user, String password) async {
bool success = await Backend.auth(user, password);
if (!success) {
setState(() {
isLoading = false;
});
return;
}
setState(() {
username = user;
isLoading = true;
});
await Backend.auth(user, password);
await _storage.write(key: 'username', value: user);
await _storage.write(key: 'password', value: password);