Last few CSRF fields

This commit is contained in:
swaggboi 2024-08-15 20:30:47 -04:00
parent e19ded1362
commit de62444eca
2 changed files with 2 additions and 0 deletions

View file

@ -26,5 +26,6 @@
) %> ) %>
</div> </div>
<%= hidden_field number => $roman_numeral, id => 'number' %> <%= hidden_field number => $roman_numeral, id => 'number' %>
<%= csrf_field %>
<button type="submit" class="form-button">Answer</button> <button type="submit" class="form-button">Answer</button>
</form> </form>

View file

@ -55,6 +55,7 @@
<%= check_box preview => 1, id => 'preview' %> <%= check_box preview => 1, id => 'preview' %>
<%= label_for preview => 'Preview' %> <%= label_for preview => 'Preview' %>
</div> </div>
<%= csrf_field %>
<button type="submit" class="form-button">Post</button> <button type="submit" class="form-button">Post</button>
</form> </form>
<%# Putting this first above the thread body (nested if, yucky sry) %> <%# Putting this first above the thread body (nested if, yucky sry) %>