Openfire and restApi can find user by email

Open fire and rest api have no ability to find the user using email address is exist with any user before register or add user to openfire

as username is compulsory and unique email will be unique to avoid spam and duplication of user in profile when new user register by api or by xmpp register

Yeah, email should be unique but it is not. You can create multiple username with same email id.

@aks I need to implement this feature for reduce the spam ratio of user at time of registrtaion