Skip to content

Commit ce3d895

Browse files
committed
Added trim to login form strings
1 parent ab41b23 commit ce3d895

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app_feup/lib/view/Pages/LoginPageView.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class _LoginPageViewState extends State<LoginPageView> {
3838
final store = StoreProvider.of<AppState>(context);
3939
if (store.state.content['loginStatus'] != RequestStatus.BUSY &&
4040
_formKey.currentState.validate()) {
41-
final user = usernameController.text;
42-
final pass = passwordController.text;
41+
final user = usernameController.text.trim();
42+
final pass = passwordController.text.trim();
4343
store.dispatch(login(user, pass, faculty, _keepSignedIn, usernameController, passwordController));
4444
}
4545
}

0 commit comments

Comments
 (0)