summaryrefslogtreecommitdiffstats
path: root/gerrit-httpd/src/main/resources/com/google/gerrit/httpd/auth/become/BecomeAnyAccount.html
blob: 4795e9101b23e409d62dfa0d7c37336846974759 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<html>
  <head>
    <title>Gerrit Code Review</title>
    <script id="gerrit_gwtdevmode">
      (function () {
        var pn = 'gwt.codesvr';
        var cn = 'gerrit.' + pn;

        var p_start = window.location.search.indexOf(pn + '=');
        if (p_start != -1) {
          p_start = p_start + pn.length + 1;
          var p_end = window.location.search.indexOf(";", p_start);
          if (p_end == -1) p_end = window.location.search.length;
          var v = window.location.search.substring(p_start, p_end);

          var e = new Date();
          e.setDate(e.getDate() + 1);
          document.cookie = cn + "=" + v + ';expires=' + e.toGMTString();

        } else if (document.cookie.length != 0) {
          var c_start = document.cookie.indexOf(cn + '=');
          if (c_start != -1) {
            c_start = c_start + cn.length + 1;
            var c_end = document.cookie.indexOf(";", c_start);
            if (c_end == -1) c_end = document.cookie.length;
            var v = document.cookie.substring(c_start, c_end);
            window.location.replace('?' + pn + '=' + v + document.location.hash);
          }
        }
      })();
    </script>
  </head>
  <body>
    <h2>Sign In</h2>
    <table border="0">
      <tr>
        <th>Username:</th>
        <td>
          <form method="GET">
            <input type="text" size="30" name="user_name" />
            <input type="submit" value="Become Account" />
          </form>
        </td>
      </tr>

      <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>

      <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>