Stabilize frontend login. Make chat messages multiline.
This commit is contained in:
1 parent
5bbdfe8747
commit
3f37f727af
6 files changed
+71
-31
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user