mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
Installer: Set some admin profile fields
This commit is contained in:
parent
5593f0bc5f
commit
0ea0491378
@ -137,7 +137,11 @@ class ConfigController extends Controller {
|
||||
$user->status = User::STATUS_ENABLED;
|
||||
$user->super_admin = true;
|
||||
$user->save();
|
||||
|
||||
$user->profile->firstname = 'Super';
|
||||
$user->profile->lastname = 'Admin';
|
||||
$user->profile->title = "Administration";
|
||||
$user->profile->save();
|
||||
|
||||
// Create Welcome Space
|
||||
$space = new Space();
|
||||
$space->name = 'Welcome Space';
|
||||
@ -568,6 +572,7 @@ class ConfigController extends Controller {
|
||||
$group->name = "Users";
|
||||
$group->description = "Example Group by Installer";
|
||||
$group->save();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user