This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove 'local_register_only' and add 'allow_registration'.
The existing implementation of 'local_register_only' had a security hole. Moreover, I'm not sure that it's possible to implement the intent of 'local_register_only' in Rails/EM safely. We would need to grab the socket for the current request and call getpeername() on it. We attempt to provide similar functionality to 'local_register_only' by allowing users to disable registration and provide seed users to be created at startup. The seed users can then be used to register additional users. Test plan: - New unit tests pass - Ran CC locally with/without allow_registration set and verified the correct behaviour with vmc. - BVTs pass locally - BVTs pass on my deployment Change-Id: Ib1c96304f7a7364b913a8a09f7178f85857cd46d
- Loading branch information
mpage
committed
Nov 18, 2011
1 parent
6e5d668
commit 455c335
Showing
5 changed files
with
55 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters