Skip to content

Commit

Permalink
Specify where onCheckEmail should be defined
Browse files Browse the repository at this point in the history
I guess `onCheckEmail` should be defined inside the page code, so I updated the document accordingly. Please correct me if my suggestion is wrong.
  • Loading branch information
meysammahfouzi committed Nov 18, 2016
1 parent 47aab56 commit 51559d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ The User plugin displays AJAX error messages in a simple ``alert()``-box by defa

### Checking if a login name is already taken

Here is a simple example of how you can quickly check if an email address / username is available in your registration forms. First create an AJAX handler to check the login name, here we are using the email address:
Here is a simple example of how you can quickly check if an email address / username is available in your registration forms. First, inside the page code, define the following AJAX handler to check the login name, here we are using the email address:

public function onCheckEmail()
{
Expand Down

0 comments on commit 51559d3

Please sign in to comment.