1
0
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:
Toby Zerner
2015-11-23 11:53:57 +10:30
parent 7eab206f91
commit 2c4fae60bc
3 changed files with 52 additions and 2 deletions

View File

@@ -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);
}
/**