Added CSRF fields to mod/admin templates
This commit is contained in:
parent
fd0eba29d7
commit
e19ded1362
|
@ -18,5 +18,6 @@
|
||||||
<%= label_for password => 'Password' %>
|
<%= label_for password => 'Password' %>
|
||||||
<%= password_field password => (id => 'password') %>
|
<%= password_field password => (id => 'password') %>
|
||||||
</div>
|
</div>
|
||||||
|
<%= csrf_field %>
|
||||||
<button type="submit" class="form-button">Reset</button>
|
<button type="submit" class="form-button">Reset</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -26,5 +26,6 @@
|
||||||
<%= label_for password => 'Password' %>
|
<%= label_for password => 'Password' %>
|
||||||
<%= password_field password => (id => 'password') %>
|
<%= password_field password => (id => 'password') %>
|
||||||
</div>
|
</div>
|
||||||
|
<%= csrf_field %>
|
||||||
<button type="submit" class="form-button">Create</button>
|
<button type="submit" class="form-button">Create</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -10,5 +10,6 @@
|
||||||
<%= label_for email => 'Email' %>
|
<%= label_for email => 'Email' %>
|
||||||
<%= email_field email => (id => 'email', autofocus => undef) %>
|
<%= email_field email => (id => 'email', autofocus => undef) %>
|
||||||
</div>
|
</div>
|
||||||
|
<%= csrf_field %>
|
||||||
<button type="submit" class="form-button">Demote</button>
|
<button type="submit" class="form-button">Demote</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -10,5 +10,6 @@
|
||||||
<%= label_for email => 'Email' %>
|
<%= label_for email => 'Email' %>
|
||||||
<%= email_field email => (id => 'email', autofocus => undef) %>
|
<%= email_field email => (id => 'email', autofocus => undef) %>
|
||||||
</div>
|
</div>
|
||||||
|
<%= csrf_field %>
|
||||||
<button type="submit" class="form-button">Lock</button>
|
<button type="submit" class="form-button">Lock</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -12,11 +12,12 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="form-field">
|
<div class="form-field">
|
||||||
<% if (my $error = validation->error('password')) { =%>
|
<% if (my $error = validation->error('password')) { =%>
|
||||||
<p class="field-with-error">Must be between <%= $error->[2] %>
|
<p class="field-with-error">Must be atleast <%= $error->[2] %>
|
||||||
and <%= $error->[3] %> characters.</p>
|
characters.</p>
|
||||||
<% } =%>
|
<% } =%>
|
||||||
<%= label_for password => 'Password' %>
|
<%= label_for password => 'Password' %>
|
||||||
<%= password_field password => (id => 'password') %>
|
<%= password_field password => (id => 'password') %>
|
||||||
</div>
|
</div>
|
||||||
|
<%= csrf_field %>
|
||||||
<button type="submit" class="form-button">Login</button>
|
<button type="submit" class="form-button">Login</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
<%= label_for password => 'Password' %>
|
<%= label_for password => 'Password' %>
|
||||||
<%= password_field password => (id => 'password', autofocus => undef) %>
|
<%= password_field password => (id => 'password', autofocus => undef) %>
|
||||||
</div>
|
</div>
|
||||||
|
<%= csrf_field %>
|
||||||
<button type="submit" class="form-button">Reset</button>
|
<button type="submit" class="form-button">Reset</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
|
@ -10,5 +10,6 @@
|
||||||
<%= label_for email => 'Email' %>
|
<%= label_for email => 'Email' %>
|
||||||
<%= email_field email => (id => 'email', autofocus => undef) %>
|
<%= email_field email => (id => 'email', autofocus => undef) %>
|
||||||
</div>
|
</div>
|
||||||
|
<%= csrf_field %>
|
||||||
<button type="submit" class="form-button">Promote</button>
|
<button type="submit" class="form-button">Promote</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -10,5 +10,6 @@
|
||||||
<%= label_for email => 'Email' %>
|
<%= label_for email => 'Email' %>
|
||||||
<%= email_field email => (id => 'email', autofocus => undef) %>
|
<%= email_field email => (id => 'email', autofocus => undef) %>
|
||||||
</div>
|
</div>
|
||||||
|
<%= csrf_field %>
|
||||||
<button type="submit" class="form-button">Unlock</button>
|
<button type="submit" class="form-button">Unlock</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in a new issue