aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates/login.html
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/templates/login.html')
-rw-r--r--youtube/templates/login.html60
1 files changed, 60 insertions, 0 deletions
diff --git a/youtube/templates/login.html b/youtube/templates/login.html
new file mode 100644
index 0000000..49a5365
--- /dev/null
+++ b/youtube/templates/login.html
@@ -0,0 +1,60 @@
+{% extends "base.html" %}
+{% block page_title %}Login{% endblock %}
+
+{% block style %}
+ main{
+ display: grid;
+ grid-template-columns: minmax(0px, 3fr) 640px 40px 500px minmax(0px,2fr);
+ align-content: start;
+ grid-row-gap: 40px;
+ }
+
+ main form{
+ margin-top:20px;
+ grid-column:2;
+ display:grid;
+ justify-items: start;
+ align-content: start;
+ grid-row-gap: 10px;
+ }
+
+ #username, #password{
+ grid-column:2;
+ width: 250px;
+ }
+ #add-account-button{
+ margin-top:20px;
+ }
+ #tor-note{
+ grid-row:2;
+ grid-column:2;
+ background-color: #dddddd;
+ padding: 10px;
+ }
+{% endblock style %}
+
+{% block main %}
+ <form action="" method="POST">
+ <div class="form-field">
+ <label for="username">Username:</label>
+ <input type="text" id="username" name="username">
+ </div>
+ <div class="form-field">
+ <label for="password">Password:</label>
+ <input type="password" id="password" name="password">
+ </div>
+ <div id="save-account-checkbox">
+ <input type="checkbox" id="save-account" name="save" checked>
+ <label for="save-account">Save account info to disk (password will not be saved, only the login cookie)</label>
+ </div>
+ <div>
+ <input type="checkbox" id="use-tor" name="use_tor">
+ <label for="use-tor">Use Tor when logging in (WARNING: This will lock your Google account under normal circumstances, see note below)</label>
+ </div>
+ <input type="submit" value="Add account" id="add-account-button">
+ </form>
+ <div id="tor-note"><b>Note on using Tor to log in</b><br>
+Using Tor to log in should only be done if the account was created using a proxy/VPN/Tor to begin with and hasn't been logged in using your IP. Otherwise, it's pointless since Google already knows who the account belongs to. When logging into a google account, it must be logged in using an IP address geographically close to the area where the account was created or where it is logged into regularly. If the account was created using an IP address in America and is logged into from an IP in Russia, Google will block the Russian IP from logging in, assume someone knows your password, lock the account, and make you change your password. If creating an account using Tor, you must remember the IP (or geographic region) it was created in, and only log in using that geographic region for the exit node. This can be accomplished by <a href="https://tor.stackexchange.com/questions/733/can-i-exit-from-a-specific-country-or-node">putting the desired IP in the torrc file</a> to force Tor to use that exit node. Using the login cookie to post comments through Tor is perfectly safe, however.
+ </div>
+{% endblock main %}
+