summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-05-21 19:50:01 -0400
committerMalf Furious <m@lfurio.us>2016-05-21 19:50:01 -0400
commit4778b9dedb1583ba1091da8d55d5ea6bf62f3202 (patch)
tree90ae36f7f8064f471998fe31979133f6378d481e
parentd431ef2954455ad38454d27f5be866061794b4bf (diff)
downloadscrott-4778b9dedb1583ba1091da8d55d5ea6bf62f3202.tar.gz
scrott-4778b9dedb1583ba1091da8d55d5ea6bf62f3202.zip
Add 'Delete Account' button to user settings form
Links to a confirmation page which will require the user's current password to succeed.
-rw-r--r--app/view/common/setting.modal.view.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/view/common/setting.modal.view.php b/app/view/common/setting.modal.view.php
index e43f723..845f4ed 100644
--- a/app/view/common/setting.modal.view.php
+++ b/app/view/common/setting.modal.view.php
@@ -108,6 +108,11 @@
</form>
<p>&nbsp;</p>
+ <p>&nbsp;</p>
+
+ <a href="<?=$mod->ar()?>/deleteaccount" class="btn btn-danger btn-xs pull-right"><span class="glyphicon glyphicon-trash"></span> Delete Account</a>
+
+ <p>&nbsp;</p>
</div>
<?php if ($mod->getCurrentUser()->admin == 1) { ?>