File tree 2 files changed +3
-2
lines changed
translations/locales/en-US
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ export function validateSettings(formProps) {
62
62
63
63
export function validateLogin ( formProps ) {
64
64
const errors = { } ;
65
- if ( ! formProps . email ) {
66
- errors . email = i18n . t ( 'ReduxFormUtils.errorEmptyEmail ' ) ;
65
+ if ( ! formProps . email && ! formProps . username ) {
66
+ errors . email = i18n . t ( 'ReduxFormUtils.errorEmptyEmailorUserName ' ) ;
67
67
}
68
68
if ( ! formProps . password ) {
69
69
errors . password = i18n . t ( 'ReduxFormUtils.errorEmptyPassword' ) ;
Original file line number Diff line number Diff line change 334
334
"ReduxFormUtils" : {
335
335
"errorInvalidEmail" : " Please enter a valid email address" ,
336
336
"errorEmptyEmail" : " Please enter an email" ,
337
+ "errorEmptyEmailorUserName" : " Please enter an email or username" ,
337
338
"errorPasswordMismatch" : " Passwords must match" ,
338
339
"errorEmptyPassword" : " Please enter a password" ,
339
340
"errorShortPassword" : " Password must be at least 6 characters" ,
You can’t perform that action at this time.
0 commit comments