-
Notifications
You must be signed in to change notification settings - Fork 104
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
[Feature] Ability to disable user registration #136
Comments
Hi @pjdevries, I recently installed PASTE and had the same question. My use case is to use PASTE only as a private pastebin for myself. As a temporary solution, I turned on require captcha and Email Verification, then edited Configuration > Mail Settings in the admin panel to point to one of my domains with account information that doesn't exist. This will allow new users accounts to be created, but the account verification email will not be sent due to invalid SMTP information. Then occasionally I'll go in and click on delete all unverified accounts. Not an elegant solution by any stretch, but it should at least cut down on superfluous accounts being created. |
Thanx for the suggestion @devnpnet. It definitely is a creative workaround, but somewhat cumbersome, to be honest. Unless there comes a proper solution, I prefer not to use PASTE. But who knows, if I can ever find the time, energy and inspiration, I'll see if I can fix it myself and create a pull request for it. Don't hold your breath though :) |
You could edit the file and remove that link.
|
Wouldn't be better to remove also the whole // Register process
if (isset($_POST['signup'])) {
$username = htmlentities(trim($_POST['username']));
$password = password_hash($_POST['password'], PASSWORD_DEFAULT);
$email = htmlentities(trim($_POST['email']));
$full_name = htmlentities(trim($_POST['full']));
... best solution though, a proper boolean setting to enable disable the whole feature from admin panel |
Hi,
Thanks once more for PASTE. There is something bothering me though. As far as I can tell, there is no way to control new user registrations. No way to completely disable it and no way to verify registration requests by the administrator. Am I missing something or is this simply not possible? If not, consider it a feature request :)
The text was updated successfully, but these errors were encountered: