add toggle to disable regs

This commit is contained in:
2018-07-29 21:24:53 +02:00
parent 886c65b28e
commit 8047a0487f
8 changed files with 103 additions and 55 deletions
@@ -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();
}