Open Ale1x opened 2 weeks ago
Yeah, that could definitely be a feature. So, in the settings you were thinking about just including an extra toggle that says: Disable Registration
, correct?
Where do you imagine the user would be redirected to when visiting /auth/register
if it's disabled. Would the desirable redirect be to the /auth/login
page?
I prefer that users be redirected to the ‘/’ route. If a site admin chooses to disable registration, it is likely that they do not want to disclose the existence of the login page either.
+1 on disable user registration
I'd be happy with /auth/register just returning a 404 when disabled
I want to work on this enhancement if it hasn't been assigned to anyone else. @tnylea
Hey everyone, just a quick reminder to consider this: I'm currently looking into what to do when the user lands on /auth/register
. How about adding an input box to the authentication setup for specifying the redirection path instead of hardcoding it? This way, you have more flexibility.
@Ale1x suggested redirecting to /
and @johntrickett86 suggested redirecting to the 404
page. I'd appreciate some input on this. Thank you!
Hey everyone, just a quick reminder to consider this: I'm currently looking into what to do when the user lands on
/auth/register
. How about adding an input box to the authentication setup for specifying the redirection path instead of hardcoding it? This way, you have more flexibility.@Ale1x suggested redirecting to
/
and @johntrickett86 suggested redirecting to the404
page. I'd appreciate some input on this. Thank you!
Maybe there could be a bool setting of Redirect if disabled, then if true you would need to specify the path?
@johntrickett86, can you please explain it more? I didn't quite get it.
@johntrickett86, can you please explain it more? I didn't quite get it.
So let's say that in the auth settings page there is an option (Boolean) to disable the registration.
If false, then registration is allowed.
If true, there are further settings:
It could be potentially cleaner to simply have a redirect path option and if null return a 404.
@johntrickett86 Okay now I understand it. That's a cleaner and better way to handle this thank you.
@skdishansachin I haven't started implementing this so feel free to start implementing 😉 I've just assigned you to this, but let me know if you need any assistance. Really appreciate it!
I've merged your password confirmation into main and will be tagging a new version today 👏
@tnylea I will start working on this soon. Thank you.
Hello, is there a way to disable Users's registration?
By the way, great project, love it.