File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
packages/amplify_authenticator/lib/src Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ class AuthenticatorState extends ChangeNotifier {
105
105
String get password => _password;
106
106
107
107
set password (String value) {
108
- _password = value;
108
+ _password = value. trim () ;
109
109
notifyListeners ();
110
110
}
111
111
@@ -157,7 +157,7 @@ class AuthenticatorState extends ChangeNotifier {
157
157
String get newPassword => _newPassword;
158
158
159
159
set newPassword (String value) {
160
- _newPassword = value;
160
+ _newPassword = value. trim () ;
161
161
notifyListeners ();
162
162
}
163
163
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ FormFieldValidator<String> validatePasswordConfirmation(
112
112
context,
113
113
InputResolverKey .passwordConfirmationEmpty,
114
114
);
115
- } else if (getPassword () != passwordConfirmation) {
115
+ } else if (getPassword () != passwordConfirmation. trim () ) {
116
116
return inputResolver.resolve (
117
117
context, InputResolverKey .passwordsDoNotMatch);
118
118
}
You can’t perform that action at this time.
0 commit comments