File tree Expand file tree Collapse file tree
client/modules/User/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ export function AccountForm() {
148148 < Field name = "currentPassword" >
149149 { ( field ) => (
150150 < p className = "form__field" >
151- < label htmlFor = "current password " className = "form__label" >
151+ < label htmlFor = "currentPassword " className = "form__label" >
152152 { t ( 'AccountForm.CurrentPassword' ) }
153153 </ label >
154154 < input
@@ -172,7 +172,7 @@ export function AccountForm() {
172172 < Field name = "newPassword" >
173173 { ( field ) => (
174174 < p className = "form__field" >
175- < label htmlFor = "new password " className = "form__label" >
175+ < label htmlFor = "newPassword " className = "form__label" >
176176 { t ( 'AccountForm.NewPassword' ) }
177177 </ label >
178178 < input
Original file line number Diff line number Diff line change @@ -287,11 +287,7 @@ userSchema.statics.findByEmailOrUsername = async function findByEmailOrUsername(
287287 : value . indexOf ( '@' ) > - 1 ;
288288
289289 // do the case insensitive stuff
290- if (
291- arguments . length === 2 &&
292- typeof options === 'object' &&
293- options . caseInsensitive
294- ) {
290+ if ( options ?. caseInsensitive ) {
295291 const query = isEmail ? { email : value } : { username : value } ;
296292 const foundUser = await user
297293 . findOne ( query )
You can’t perform that action at this time.
0 commit comments