-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow users to disable registrations #141
Conversation
7f59e68
to
b3c2c94
Compare
<span class="opacity-[47%]"> {{ config('devdojo.auth.language.login.dont_have_an_account') }} </span> | ||
<x-auth::elements.text-link data-auth="register-link" href="{{ route('auth.register') }}">{{ config('devdojo.auth.language.login.sign_up') }}</x-auth::elements.text-link> | ||
</div> | ||
@if(config('devdojo.auth.settings.registration_enabled')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may want to add a default value of true in this config, like so:
@if(config('devdojo.auth.settings.registration_enabled', true))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, just updated that!
Thanks for adding the test to these. Would this also prevent people from registering using Social Auth like Google or Github? |
I've just extended the PR to include that as well! So now this includes:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So great! Can't wait to use our Auth package on DevDojo ;)
As per a few user requests on the DevDojo site:
Implementing that functionality. When disabled if someone visits the register route they will be redirected to the
/login
route and see the following message: