From 6b0f805adc0f5555adbb6e203e4649ffc597fe75 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Fri, 26 Mar 2021 23:14:38 +0900 Subject: [PATCH] added scopes for sending mails more efficiently on base login and account registration. --- app/Http/Controllers/Auth/LoginController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php index 889d8e4e8..4108411cf 100644 --- a/app/Http/Controllers/Auth/LoginController.php +++ b/app/Http/Controllers/Auth/LoginController.php @@ -77,7 +77,8 @@ class LoginController extends Controller */ public function redirectToProvider($profile = null, Socialite $social) { //The default scope is public data for everyone due to OAuth2 Tokens - $scopes = ['publicData']; + //We also add the send mail scope in order to be able to send mails more efficiently through jobs when other scopes are required. + $scopes = ['publicData', 'esi-mail.send_mail.v1']; //Collect any other scopes we need if we are logged in. //If we are logged in we are linking another character to this one.