Changes between Version 26 and Version 29 of Ticket #2234


Ignore:
Timestamp:
04/27/2015 02:17:02 PM (5 years ago)
Author:
sebastian
Comment:

As discussed with trev, /submitEmail now also expects a language which is considered for the landing page the user is redirected to, after clicking the verification link.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2234

    • Property Blocked By changed from to 2335
  • Ticket #2234 – Description

    v26 v29  
    1111==== `/submitEmail` ==== 
    1212 
    13 This controller handles `POST` requests, submitting email addresses, using a form field named `email`. 
     13This controller handles `POST` requests with following form fields: 
    1414 
    15 If the email address is invalid a response with status 400 and the text "Please 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. 
     15||`email`||An email address to receive the notification about the Adblock Browser iOS launch|| 
     16||`lang`||The language code of the landing page shown after verifying the email address|| 
     17 
     18If the email address is invalid a response with status 400 and the text "Please enter a valid email address." should be returned. We don't need full email validation here, but should merely make sure that the 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. 
    1619 
    1720Otherwise, 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: 
     
    4952==== `/verifyEmail` ==== 
    5053 
    51 This controller handles the links in the verification emails sent by `/submitEmail`. If the verification URL is valid, the email address should be stored, and the user should be redirected to a corresponding landing page. Otherwise, a response with status 403 and a corresponding error message should be returned. 
     54This controller handles the links in the verification emails sent by `/submitEmail`. If the verification URL is valid, the email address should be stored, and the user should be redirected to the corresponding landing page (#2335) in the given language. Otherwise, a response with status 403 and a corresponding error message should be returned.