Support creating new users in DEVELOPMENT_BECOME_ANY_ACCOUNT
Under development mode it can be useful to construct a new user account anytime, without needing to manually inject records in the database or switch temporarily to LDAP or OpenID methods. Because we don't really have an external identity for the user we given them a random one via the JRE's UUID generator. New account creation should be infrequent enough in development to never run into a collision. Change-Id: Id15ddc34ef7bfa5cea6d12c435cb09b8443c77fd Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@@ -31,22 +31,44 @@
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form method="GET">
|
||||
<b>ssh_user_name:</b>
|
||||
<input type="text" size="30" name="ssh_user_name" />
|
||||
<input type="submit" value="Become Account" />
|
||||
</form>
|
||||
<h2>Sign In</h2>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<th>SSH Username:</th>
|
||||
<td>
|
||||
<form method="GET">
|
||||
<input type="text" size="30" name="ssh_user_name" />
|
||||
<input type="submit" value="Become Account" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<form method="GET">
|
||||
<b>preferred_email:</b>
|
||||
<input type="text" size="30" name="preferred_email" />
|
||||
<input type="submit" value="Become Account" />
|
||||
</form>
|
||||
<tr>
|
||||
<th>Email Address:</th>
|
||||
<td>
|
||||
<form method="GET">
|
||||
<input type="text" size="30" name="preferred_email" />
|
||||
<input type="submit" value="Become Account" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<form method="GET">
|
||||
<b>account_id:</b>
|
||||
<input type="text" size="12" name="account_id" />
|
||||
<input type="submit" value="Become Account" />
|
||||
<tr>
|
||||
<th>Account ID:</th>
|
||||
<td>
|
||||
<form method="GET">
|
||||
<input type="text" size="12" name="account_id" />
|
||||
<input type="submit" value="Become Account" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<hr />
|
||||
<h2>Register</h2>
|
||||
<form method="POST">
|
||||
<input type="hidden" name="action" value="create_account" />
|
||||
<input type="submit" value="New Account" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user