Password Reset validation using Email Address only
When users have forgotten or lost their password, they can reset their password from the login form. The "forgot password" link is displayed when you have enabled it in wp-admin>Ultimate Member> Forms> Edit Login Form> Customize this form> Show forgot password link.
Ultimate Member's default password reset form requires entering the user's email address or username. If you want users to use the email address only for validation, it requires customization.
The code below will reject the username in the Reset Password form. You can add the code to your theme/child-theme's functions.php file or use the Code Snippet plugin to run the code.
When a user tries to reset their password using the username, a message will appear that they need to provide an email address to reset their password.
NOTE: We have created this code example to provide guidance and make it easier for you to implement this code into your website. However, we cannot offer any support for customizing the plugin. If you need help implementing this code, please hire a developer.