File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -64,20 +64,20 @@ public function request(
6464 }
6565
6666 $ em = $ this ->getDoctrine ()->getManager ();
67- $ businessUsernameOrEmail = StringHelper::truncateToMySQLVarcharMaxLength (
68- $ request ->request ->get ('businessUsernameOrEmail ' )
67+ $ login = StringHelper::truncateToMySQLVarcharMaxLength (
68+ $ request ->request ->get ('login ' )
6969 );
7070
71- if (preg_match ('/^.+@\S+\.\S+$/ ' , $ businessUsernameOrEmail )) {
71+ if (preg_match ('/^.+@\S+\.\S+$/ ' , $ login )) {
7272 /**
7373 * @var User $user
7474 */
75- $ user = $ em ->getRepository (User::class)->findOneBy (['email ' => $ businessUsernameOrEmail ]);
75+ $ user = $ em ->getRepository (User::class)->findOneBy (['email ' => $ login ]);
7676 } else {
7777 /**
7878 * @var User $user
7979 */
80- $ user = $ em ->getRepository (User::class)->findOneBy (['businessUsername ' => $ businessUsernameOrEmail ]);
80+ $ user = $ em ->getRepository (User::class)->findOneBy (['businessUsername ' => $ login ]);
8181 }
8282
8383 $ this ->addFlash (
Original file line number Diff line number Diff line change 1919
2020 <div class =" form-group" >
2121 <input type =" text" class =" form-control border-input mb-3 rounded-0" id =" username"
22- name =" businessUsernameOrEmail " placeholder =" {{ ' user.username_or_email_address' | trans }}"
22+ name =" login " placeholder =" {{ ' user.username_or_email_address' | trans }}"
2323 aria-label =" email" aria-describedby =" email" required =" required"
2424 />
2525 </div >
You can’t perform that action at this time.
0 commit comments