trim invite and confirm addresses
This commit is contained in:
parent
c475e58e64
commit
7aa3565162
|
@ -241,9 +241,9 @@ class EmailregisterAction extends Action
|
||||||
function setPassword()
|
function setPassword()
|
||||||
{
|
{
|
||||||
if (!empty($this->invitation)) {
|
if (!empty($this->invitation)) {
|
||||||
$email = $this->invitation->address;
|
$email = trim($this->invitation->address);
|
||||||
} else if (!empty($this->confirmation)) {
|
} else if (!empty($this->confirmation)) {
|
||||||
$email = $this->confirmation->address;
|
$email = trim($this->confirmation->address);
|
||||||
} else {
|
} else {
|
||||||
throw new Exception('No confirmation thing.');
|
throw new Exception('No confirmation thing.');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user