mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-30 13:19:11 +02:00
Update src/Security/Member.php
Co-authored-by: Steve Boyd <emteknetnz@gmail.com>
This commit is contained in:
parent
0586c55e62
commit
19052e6924
@ -872,7 +872,7 @@ class Member extends DataObject
|
|||||||
public function onBeforeWrite()
|
public function onBeforeWrite()
|
||||||
{
|
{
|
||||||
// Prevent spaces in emails
|
// Prevent spaces in emails
|
||||||
if($this->Email) {
|
if ($this->Email) {
|
||||||
$this->Email = trim($this->Email);
|
$this->Email = trim($this->Email);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user