Spaces:
Runtime error
Runtime error
| {% extends "base.html" %} | |
| {% block title %}Sign Up - Outline VPN{% endblock %} | |
| {% block content %} | |
| <div class="row justify-content-center"> | |
| <div class="col-md-6 col-lg-4"> | |
| <div class="card"> | |
| <div class="card-body"> | |
| <h2 class="card-title text-center mb-4">Create Account</h2> | |
| <form method="POST" action="{{ url_for('signup') }}"> | |
| <div class="mb-3"> | |
| <label for="email" class="form-label">Email address</label> | |
| <input type="email" class="form-control" id="email" name="email" required> | |
| </div> | |
| <div class="mb-3"> | |
| <label for="password" class="form-label">Password</label> | |
| <input type="password" class="form-control" id="password" name="password" required minlength="8"> | |
| </div> | |
| <div class="mb-3"> | |
| <label for="confirm_password" class="form-label">Confirm Password</label> | |
| <input type="password" class="form-control" id="confirm_password" name="confirm_password" required minlength="8"> | |
| </div> | |
| <div class="d-grid"> | |
| <button type="submit" class="btn btn-primary">Sign Up</button> | |
| </div> | |
| </form> | |
| <div class="text-center mt-3"> | |
| <p>Already have an account? <a href="{{ url_for('login') }}">Sign in</a></p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| {% block extra_js %} | |
| <script> | |
| document.querySelector('form').addEventListener('submit', function(e) { | |
| const password = document.getElementById('password'); | |
| const confirm = document.getElementById('confirm_password'); | |
| if (password.value !== confirm.value) { | |
| e.preventDefault(); | |
| alert('Passwords do not match!'); | |
| } | |
| }); | |
| </script> | |
| {% endblock %} | |
| {% endblock %} | |