• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Delete user (or change email) request.

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I see it's not possible to delete a user:

https://coderanch.com/t/577196

Please consider a feature to let me change the email address or name. Folks often set their name to their good email address as they don't realize it will be displayed. They realize this and want it changed.

Thank you.

[originally posted on jforum.net by MarkSwanson]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can modify this yourself if you wish ...

I guess it's in the GenericUserDAO - where the update is done. The parameters being set include about any field other than the "email". Emails only are allowed to be updated if the user is part of the admin group...

hence - the code change is simply a line for you if it's required ^^
[originally posted on jforum.net by Sid]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The reason btw for why thereis no 'delete' function is that the forum posts by the user would have to be edited and thus... otherwise there may be exceptions comming up.

You could help yourself doing some sql statements - with an update to the forum_posts table , setting all posts of the user to "unknown" user or "deleted" user or however you wish to call him, next simply do a 'delete from' on the user id in the users and user_groups table
[originally posted on jforum.net by Sid]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I assume that you know that administrators can "lock" (disable) accounts and change name's / e-mail addresses via the edit users page?

As stated, removing a user id can cause problems for any topic's that contain a user's postings. Generally the recommended practice is to lock the id and change the user_name to something like DELETE_<user_name>.

FWIW, I'm not sure that allowing users to modify their user names and e-mail addresses is a good idea. Imagine someone changes their name to "forum admin", then posts something.

The e-mail address is the way that lost passwords, etc. are recovered. It is based on being validated at registration. Changing e-mails opens a whole lot of issues, like getting access to someone's computer, changing it to your e-mail address, then doing a lost password request.

Finally, it's not that hard to modify the templates to display the user "from" property instead of the user name. All my forums do this so that you get more user friendly names.
[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If SSO is configured though, the email address is only necessary for sending the watch-emails out to the users. Therefore allowing the user to change the email may be helpful at times - which is why we're considering it.

The password is only stored in the actual front-end application. The users on the forumd atabase all have a default password ... which is useless either way, as they can not log onto the forum ...

The "from" thing sounds interesting though monroe. I may modify the database maybe, adding a prename and family name field... and setting those via the application (sso) - so that the full name may be displayed instead of the username.

Though - after all - as 2.18 may come soon, i guess it's best to wait.. so i dont have to redo it all and all over again
[originally posted on jforum.net by Sid]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Users can change their email in the profile page. Also, if you are the admin, you can change their names too. Just go to Admin Panel -> Users and edit them

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
they can? *scratches head* I could change about anything bout the email when being SSO user ...

And - the email address is treated differently for sure.. as I could see in the code ... ^^

Imay have a look again ...
[originally posted on jforum.net by Sid]
 
It sure was nice of your sister to lend us her car. Let's show our appreciation by sharing this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic