trim invite and confirm addresses

This commit is contained in:
Evan Prodromou 2011-04-21 11:11:46 -04:00
parent c475e58e64
commit 7aa3565162
1 changed files with 2 additions and 2 deletions

View File

@ -241,9 +241,9 @@ class EmailregisterAction extends Action
function setPassword()
{
if (!empty($this->invitation)) {
$email = $this->invitation->address;
$email = trim($this->invitation->address);
} else if (!empty($this->confirmation)) {
$email = $this->confirmation->address;
$email = trim($this->confirmation->address);
} else {
throw new Exception('No confirmation thing.');
}