File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
translations/locales/en-US Expand file tree Collapse file tree 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) {
6262
6363export function validateLogin ( formProps ) {
6464 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 ' ) ;
6767 }
6868 if ( ! formProps . password ) {
6969 errors . password = i18n . t ( 'ReduxFormUtils.errorEmptyPassword' ) ;
Original file line number Diff line number Diff line change 334334 "ReduxFormUtils" : {
335335 "errorInvalidEmail" : " Please enter a valid email address" ,
336336 "errorEmptyEmail" : " Please enter an email" ,
337+ "errorEmptyEmailorUserName" : " Please enter an email or username" ,
337338 "errorPasswordMismatch" : " Passwords must match" ,
338339 "errorEmptyPassword" : " Please enter a password" ,
339340 "errorShortPassword" : " Password must be at least 6 characters" ,
You can’t perform that action at this time.
0 commit comments