mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 15:05:33 +00:00
MINOR Temporary fix for exception thrown in installer when existing admin account exists, temp fix just leaves existing admin account intact
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@101085 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
81feae40fc
commit
1d2b125748
@ -949,7 +949,10 @@ PHP
|
|||||||
$adminMember->PasswordEncryption = Security::get_password_encryption_algorithm();
|
$adminMember->PasswordEncryption = Security::get_password_encryption_algorithm();
|
||||||
$adminMember->FirstName = $config['admin']['firstname'];
|
$adminMember->FirstName = $config['admin']['firstname'];
|
||||||
$adminMember->Surname = $config['admin']['surname'];
|
$adminMember->Surname = $config['admin']['surname'];
|
||||||
|
try {
|
||||||
$adminMember->write();
|
$adminMember->write();
|
||||||
|
} catch(Exception $e) {
|
||||||
|
}
|
||||||
|
|
||||||
// Syncing filesystem (so /assets/Uploads is available instantly, see ticket #2266)
|
// Syncing filesystem (so /assets/Uploads is available instantly, see ticket #2266)
|
||||||
Filesystem::sync();
|
Filesystem::sync();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user