most of the bugs are just me being silly ngl

This commit is contained in:
Felix 2019-08-27 11:37:13 +01:00
parent ece2c62762
commit ac82ec4d48
2 changed files with 4 additions and 2 deletions

View file

@ -6,4 +6,6 @@ void saveLogout() async {
await preferences.setString('LastUser', ""); await preferences.setString('LastUser', "");
await preferences.setString('LastToken', ""); await preferences.setString('LastToken', "");
await preferences.setString('LastEmail', ""); await preferences.setString('LastEmail', "");
await preferences.setString('username', "");
await preferences.setString('password', "");
} }

View file

@ -80,8 +80,8 @@ class LoginPageState extends State<LoginPage> {
await preferences.setString('username', username); await preferences.setString('username', username);
await preferences.setString('password', password); await preferences.setString('password', password);
} else { } else {
await preferences.setString('username', ""); // this does work... await preferences.setString('username', "");
await preferences.setString('password', ""); // ...but this doesn't seem to have any effect..? await preferences.setString('password', "");
} }
await requestLoginAPI(context, username, password).then((value) { await requestLoginAPI(context, username, password).then((value) {