add toggle to disable regs
This commit is contained in:
@@ -43,6 +43,10 @@ class Authenticator
|
||||
return $this->users->findByEmail($details->email);
|
||||
}
|
||||
|
||||
if(!config('app.allow_regs', true)) {
|
||||
abort(403, "Registrations are currently closed.");
|
||||
}
|
||||
|
||||
return $this->users->create();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user