Changes between Version 21 and Version 22 of Ticket #2234


Ignore:
Timestamp:
04/24/2015 11:17:55 AM (5 years ago)
Author:
sebastian
Comment:

Improved specification of email address validation.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2234 – Description

    v21 v22  
    1111==== `/submitEmail` ==== 
    1212 
    13 This controller should handle email addresses submitted in a form field with the name `email` with a `POST` request. If the email address is invalid a response with status 400 and the text "Oops! You didn't enter a valid email address." should be returned. Otherwise, a verification email should be sent to that email address. The sender of the verification email should be info@adblockplus.org, its subjects should be "Please confirm your Adblock Browser notification" and following text should be used in the email body: 
     13This controller handles `POST` requests, submitting email addresses, using a form field named `email`. 
     14 
     15If the email address is invalid a response with status 400 and the text "Oops! You didn't enter a valid email address." should be returned. We don't need full email validation here, but should merely make sure that value is in the form of `local@domain` where the local part must be ASCII-only. Also no newlines must occur in the value, after stripping leading and trailing whitespaces. 
     16 
     17Otherwise, a verification email should be sent to that email address. The sender of the verification email should be info@adblockplus.org, its subjects should be "Please confirm your Adblock Browser notification" and following text should be used in the email body: 
    1418 
    1519{{{