diff --git a/config/devdojo/auth/descriptions.php b/config/devdojo/auth/descriptions.php
index 3f1a8fb..f380993 100644
--- a/config/devdojo/auth/descriptions.php
+++ b/config/devdojo/auth/descriptions.php
@@ -6,6 +6,7 @@
return [
'settings' => [
'redirect_after_auth' => 'Where should the user be redirected to after they are authenticated?',
+ 'registration_enabled' => 'Enable or disable registration functionality. If disabled, users will not be able to register for an account.',
'registration_show_password_same_screen' => 'During registrations, show the password on the same screen or show it on an individual screen.',
'registration_include_name_field' => 'During registration, include the Name field.',
'registration_include_password_confirmation_field' => 'During registration, include the Password Confirmation field.',
@@ -13,8 +14,10 @@
'enable_branding' => 'This will toggle on/off the Auth branding at the bottom of each auth screen. Consider leaving on to support and help grow this project.',
'dev_mode' => 'This is for development mode, when set in Dev Mode Assets will be loaded from Vite',
'enable_2fa' => 'Enable the ability for users to turn on Two Factor Authentication',
+ 'enable_email_registration' => 'Enable the ability for users to register via email',
'login_show_social_providers' => 'Show the social providers login buttons on the login form',
'center_align_social_provider_button_content' => 'Center align the content in the social provider button?',
+ 'center_align_text' => 'Center align text?',
'social_providers_location' => 'The location of the social provider buttons (top or bottom)',
'check_account_exists_before_login' => 'Determines if the system checks for account existence before login',
],
diff --git a/config/devdojo/auth/language.php b/config/devdojo/auth/language.php
index a20efaf..009ea36 100644
--- a/config/devdojo/auth/language.php
+++ b/config/devdojo/auth/language.php
@@ -33,6 +33,7 @@
'already_have_an_account' => 'Already have an account?',
'sign_in' => 'Sign in',
'button' => 'Continue',
+ 'email_registration_disabled' => 'Email registration is currently disabled. Please use social login.',
],
'verify' => [
'page_title' => 'Verify Your Account',
diff --git a/config/devdojo/auth/settings.php b/config/devdojo/auth/settings.php
index a088429..e9f139f 100644
--- a/config/devdojo/auth/settings.php
+++ b/config/devdojo/auth/settings.php
@@ -5,6 +5,7 @@
*/
return [
'redirect_after_auth' => '/',
+ 'registration_enabled' => true,
'registration_show_password_same_screen' => true,
'registration_include_name_field' => false,
'registration_include_password_confirmation_field' => false,
@@ -12,8 +13,10 @@
'enable_branding' => true,
'dev_mode' => false,
'enable_2fa' => false, // Enable or disable 2FA functionality globally
+ 'enable_email_registration' => true,
'login_show_social_providers' => true,
'center_align_social_provider_button_content' => false,
+ 'center_align_text' => false,
'social_providers_location' => 'bottom',
'check_account_exists_before_login' => false,
];
diff --git a/resources/views/components/elements/social-providers.blade.php b/resources/views/components/elements/social-providers.blade.php
index e174931..7acb539 100644
--- a/resources/views/components/elements/social-providers.blade.php
+++ b/resources/views/components/elements/social-providers.blade.php
@@ -7,7 +7,7 @@
@if($separator && config('devdojo.auth.settings.social_providers_location') != 'top')