Skip to content

Commit

Permalink
Prevent addition of non-existent domains
Browse files Browse the repository at this point in the history
  • Loading branch information
rsa33 committed Nov 15, 2024
1 parent 82edcb9 commit 20cb375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control/templates/shared/add_vhost_test.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h2>Test custom domain</h2>
<input type="hidden" name="confirm" value="on">
{% if valid[domain] == (true, true) or valid[prefixed] == (true, true) %}
<input type="submit" class="btn btn-outline-primary" value="Looks good, add domain">
{% else %}
{% elif valid[domain] != (none, none) or valid[domain] != (none, none) %}
<input type="submit" class="btn btn-outline-danger" value="Add domain anyway">
{% endif %}
</form>
Expand Down

0 comments on commit 20cb375

Please sign in to comment.