Download & Extend

Delete button on user/NNNN/edit/fb_user deletes entire user account

Project:Drupal for Facebook
Version:6.x-3.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Under edit > Facebook application

It asks if you want to delete application. I did. When I did, my drupal account was deleted. i was logged in as user 1.

Marked as critical because if it is user 1 like myself, you are in trouble.

Chris

Comments

#1

Edit above:

1. delete the application that I created in Drupal
2. Under edit account (user/me/edit), click facebook application
3. under facebook application click delete facebook application

and your account is deleted

I started with drupal (ie user 1) so why was this deleted?

Chris

#2

To the best of my knowledge, Drupal for Facebook never deletes a user account. This is mysterious.

#3

Priority:critical» normal
Status:active» closed (won't fix)

The "delete" button you hit was the button to delete the user account. It was under user/me/edit. Drupal places it on all forms there. Nothing to do with facebook modules here.

I suppose the modules could check that a Facebook Application is configured before adding that tab, but if there is no such node, you really should not have the modules enabled at all.

#4

Version:6.x-3.x-dev» 6.x-3.1
Status:closed (won't fix)» active

I had the same thing happen to me recently - it deleted user 1 which took me hours to recover from. I probably did click delete on this page instead of save, but it is too easy of a mistake to make.

Under the User Account there is a tab labeled Facebook (this is important)

If the user is connected through a facebook account, there is a checkbox checked. The instructions say "Uncheck then click save to delete this connection"

But there are two buttons at the bottom. Save and Delete.

We are instructed to click the save button but the instructions use both the words "save" and "delete", so it is an easy mistake to make.

Hitting delete, deletes the entire user account, not just the Facebook connection.

Suggestion 1 - change instructions to read "Uncheck then click save to disconnectthis connection

Suggestion 2 - remove the delete button entirely - it works the same as the delete button on the account tab. The context of having it on the Facebook tab could easily lead someone to believe they are deleting just the facebook connection, not the entire user account.

#5

Title:Deleting application deletes user (deleted user 1)» Delete button on user/NNNN/edit/fb_user deletes entire user account
Version:6.x-3.1» 6.x-3.x-dev
Category:bug report» feature request

I'm not opposed to removing the delete button. But, again, the module does not put it there. It implements hook_user(), it is drupal core that puts the delete button there. As far as I'm concerned this is standard Drupal behavior, for better or worse.

If someone submits a patch that accomplishes this, maybe a clause in fb_user_form_alter(), that would help.

#6

This happened to me. :(

nobody click here