clearbold / artx

1 stars 0 forks source link

Stub a validation function into the signup form #16

Closed heymarkreeves closed 10 years ago

heymarkreeves commented 10 years ago

Hi, Sherri!

The signup form should have a validation function that does the following:

  1. Checks that both passwords match
  2. Supports an Ajax call to the server to check if an email address is already in use
  3. Displays inline error message if either of those cases fails (or if email is not in a valid email format)

For #2, we should have a function that can contain an Ajax function, but not code the Ajax function yet. Let's build a spoof test case where if we enter "user.exists@artx.com" it returns the "That email address is already in use. Would you like to sign in?" message. ("sign in" should be linked to the sign in page.)

Thanks!