mirror of
https://github.com/flarum/core.git
synced 2025-07-19 07:41:22 +02:00
Allow provision of an avatar URL to upload during sign up
This can be used by authentication extensions (i.e. mirror Facebook/Twitter profile picture). Rough implementation, needs refactoring.
This commit is contained in:
@@ -55,6 +55,10 @@ class CoreServiceProvider extends AbstractServiceProvider
|
||||
$this->app->when('Flarum\Core\Command\DeleteAvatarHandler')
|
||||
->needs('League\Flysystem\FilesystemInterface')
|
||||
->give($avatarsFilesystem);
|
||||
|
||||
$this->app->when('Flarum\Core\Command\RegisterUserHandler')
|
||||
->needs('League\Flysystem\FilesystemInterface')
|
||||
->give($avatarsFilesystem);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user