lockit-delete-account
Version:
delete account middleware for lockit
26 lines (24 loc) • 1.17 kB
text/jade
extend /layout
block content
div.row
div.col-md-4.col-md-offset-4.col-sm-6.col-sm-offset-3
div.panel.panel-default
div.panel-heading Delete account
div.panel-body
p There is no going back. Please be certain.
form(action="/delete-account", method="POST", autocomplete="off")
input(type="hidden", name="_csrf", value=_csrf)
div.form-group
label(for="name") Enter your username
input.form-control(type="text", id="name", name="name", placeholder="Username")
div.form-group
label(for="phrase") Type in the following phrase
span
small please delete my account forever
input.form-control(type="text", id="phrase", name="phrase", placeholder="Type above phrase")
div.form-group
label(for="password") Confirm your password
input.form-control(type="password", id="password", name="password", placeholder="Password")
if error
div.alert.alert-warning #{error}
input(type="submit", class="btn btn-primary", value="Delete my account")