Jump to content

Community

Developer Documentation

Checking for username/email address availability in login handlers

When a user registers an account on the community, your handler can check if the email address or username is acceptable. This is useful if you want your login handler to provide close integration such as is provided by the LDAP and IPS Connect handlers. The methods are emailIsInUse() and usernameIsInUse().

 

boolean emailIsInUsestring $email [, \IPS\Member $exclude=NULL ] )
  • $email (string, required)
    The email address to check
  • $exclude (\IPS\Member, optional)
    If provided, excludes the supplied member from the check for uniqueness

 

boolean usernameIsInUsestring $username )
  • $username (string, required)
    The username to check

  Report Document


×
×
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy