]> BookStack Code Mirror - bookstack/commit
Altered social auto-reg to be configurable per service
authorDan Brown <redacted>
Fri, 21 Sep 2018 17:05:06 +0000 (18:05 +0100)
committerDan Brown <redacted>
Fri, 21 Sep 2018 17:05:06 +0000 (18:05 +0100)
commite60d11ee04161d16875d706110876c31f9064565
tree079558b38a349406629403f5c170510fbd85557a
parent7ad8314bd71adef5336ed6482e6933d02805f26a
Altered social auto-reg to be configurable per service

- Added {$service}_AUTO_REGISTER and {$service}_AUTO_CONFIRM_EMAIL env
options for each social auth system.
- Auto-register will allow registration from login, even if registration
is disabled.
- Auto-confirm-email indicates trust and will mark new registrants as
'email_confirmed' and skip 'confirmation email' flow.
- Also added covering tests.
app/Exceptions/SocialSignInAccountNotUsed.php [new file with mode: 0644]
app/Http/Controllers/Auth/RegisterController.php
app/Repos/UserRepo.php
app/Services/SocialAuthService.php
config/services.php
phpunit.xml
resources/lang/en/settings.php
resources/views/settings/index.blade.php
tests/Auth/SocialAuthTest.php