Skip to content

Commit 4f18572

Browse files
committed
去除登录失败的敏感信息
1 parent a3f07b1 commit 4f18572

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/user/login.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,13 @@ class LoginState extends State<LoginView> {
176176
}
177177
_username = _username.trim();
178178
_password = _password.trim();
179-
await AuthApi().login(_baseUrl, _username, "");
179+
await AuthApi().login(_baseUrl, _username, _password);
180180
Toast.show(context, "登录成功");
181181
Navigator.pushReplacement(
182182
context, MaterialPageRoute(builder: (context) => const MyApp()));
183183
} catch (e) {
184184
Toast.show(context,
185-
"登录失败 by username: $_username, password: $_password, error: $e");
185+
"登录失败 by username: $_username, password: , error: $e");
186186
} finally {}
187187
}
188188
}

0 commit comments

Comments
 (0)