File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 36
36
} else {
37
37
$ t_user_id = user_get_id_by_name ( $ f_username );
38
38
if ( $ t_user_id === false ) {
39
- error_parameters ( $ f_username );
40
- trigger_error ( ERROR_USER_BY_NAME_NOT_FOUND , ERROR );
39
+ # If we can't find the user by name, attempt to find by email.
40
+ $ t_user_id = user_get_id_by_email ( $ f_username );
41
+ if ( $ t_user_id === false ) {
42
+ error_parameters ( $ f_username );
43
+ trigger_error ( ERROR_USER_BY_NAME_NOT_FOUND , ERROR );
44
+ }
41
45
}
42
46
}
43
47
Original file line number Diff line number Diff line change 348
348
<br />
349
349
<form method="get" action="manage_user_edit_page.php">
350
350
<?php # CSRF protection not required here - form does not result in modifications ?>
351
- <?php echo lang_get ( 'username ' ) ?>
351
+ <?php echo lang_get ( 'search ' ) ?>
352
352
<input type="text" name="username" value="" />
353
353
<input type="submit" class="button" value="<?php echo lang_get ( 'manage_user ' ) ?> " />
354
354
</form>
You can’t perform that action at this time.
0 commit comments