]> BookStack Code Mirror - bookstack/blobdiff - app/Services/SocialAuthService.php
Added settings helper and formatted code in some files
[bookstack] / app / Services / SocialAuthService.php
index 2437a482706b20dd4db1eebcfef5f512d0e1e013..df213609a5e540d5ffb48003fc3352c6d24a5912 100644 (file)
@@ -135,7 +135,7 @@ class SocialAuthService
 
         // Otherwise let the user know this social account is not used by anyone.
         $message = 'This ' . $socialDriver . ' account is not linked to any users. Please attach it in your profile settings';
-        if (\Setting::get('registration-enabled')) {
+        if (setting('registration-enabled')) {
             $message .= ' or, If you do not yet have an account, You can register an account using the ' . $socialDriver . ' option';
         }
         throw new SocialSignInException($message . '.', '/login');