-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing own profile #273
Comments
#288 "profile deletion: find out why" |
Thoughts:
|
You're right. I'm just protecting my back security-wise especially because we don't have CSRF implemented. :-) |
@mrkvon Feel free to change it tho! 👍 |
Well, that's a very valid point. Especially with the sensitive action of that kind. https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)_Prevention_Cheat_Sheet |
Might be copying CSRF implementation from meanjs would've been faster than doing that email thingy tho! :-D But I mostly just copypasted it from forgot-password controller so not a biggie. https://github.com/meanjs/mean/search?utf8=%E2%9C%93&q=CSRF&type= |
Yep, we ask for an email reply to confirm. Still not extremely secure but better than nothing. |
A feature for users to remove their own profile.
UI at the account page is already there, just backend missing.
Before removal:
statService
e.g. at auth controller.Stuff to remove:
modules/users/img/profile/uploads/USER_ID/avatar/*.jpg
) so just removing that folder will do.notified:true
(so that unread-messages doesn't pick them up anymore). Leave messages from that user as is.-1
count for tribes user has joinedFuture development:
All this said, feel free to implement this in some other quicker/better/easier way! This is just what we brainstormed so far.
The text was updated successfully, but these errors were encountered: