From 4778b9dedb1583ba1091da8d55d5ea6bf62f3202 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 21 May 2016 19:50:01 -0400 Subject: Add 'Delete Account' button to user settings form Links to a confirmation page which will require the user's current password to succeed. --- app/view/common/setting.modal.view.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/view') 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 @@ -107,6 +107,11 @@ +

 

+

 

+ + Delete Account +

 

-- cgit v1.2.3 From 32e4e9606fb2ac95b236913fcc0a98a7ee23bccd Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 21 May 2016 21:44:53 -0400 Subject: Add MVC Deleteacct This will prompt the user for their password if they opt to delete their own account. This is to prevent malicious attempt by others to trick users into having there accounts deleted by way of a XSS attack. --- app/view/deleteacct/default.view.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 app/view/deleteacct/default.view.php (limited to 'app/view') diff --git a/app/view/deleteacct/default.view.php b/app/view/deleteacct/default.view.php new file mode 100644 index 0000000..b078861 --- /dev/null +++ b/app/view/deleteacct/default.view.php @@ -0,0 +1,13 @@ + + + + + + Scrott - Delete user account + + + + + + + -- cgit v1.2.3 From a99a0afd57a109f581c676b8dd3622dd3e901553 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 22 May 2016 01:59:53 -0400 Subject: Create view for delete account MVC This page prompts for user password before actually deleteing their account. --- app/view/deleteacct/default.view.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'app/view') diff --git a/app/view/deleteacct/default.view.php b/app/view/deleteacct/default.view.php index b078861..de32202 100644 --- a/app/view/deleteacct/default.view.php +++ b/app/view/deleteacct/default.view.php @@ -8,6 +8,30 @@ + +
+
+
Warning: Deleting your user account!
+ +
+
+ +

Are you sure?!

+

Please confirm you want to delete your Scrott account. Type your current password in the box below and click the confirm button

+ +
+ + +
+ + +
+
+
+
+ -- cgit v1.2.3 From 04cf93366774e7c1a9070013af866380c5f5ad95 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 22 May 2016 16:27:55 -0400 Subject: Add delete account button to all users panels Added button for admins to remove any user account --- app/view/common/setting.modal.view.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'app/view') diff --git a/app/view/common/setting.modal.view.php b/app/view/common/setting.modal.view.php index 845f4ed..60b0ba5 100644 --- a/app/view/common/setting.modal.view.php +++ b/app/view/common/setting.modal.view.php @@ -293,6 +293,17 @@ + +

 

+

 

+ +
+ + + +
-- cgit v1.2.3