fix email auth bug in legalpad

http://fab.wmflabs.org/T440

https://secure.phabricator.com/D9857

Change-Id: I4e3167378e067c441bea37e75e947700798a88b4