isso icon indicating copy to clipboard operation
isso copied to clipboard

WIP: Users

Open panta82 opened this issue 9 years ago • 4 comments
trafficstars

Add a limited support for user accounts. A way for the site owner to:

  • stylize their own comments
  • do the same for moderators/contributors/friends
  • prevent anyone else from posting in their name.

For majority of posters, everything works the same as before.

See docs and configuration comments for more details.

TODO-s and remarks:

  • Password is transmitted with each POST. Not a big deal for now, but users should probably be warned they should switch to HTTPS and/or not use their shared password.
  • I added some CSS and js for better validation + bugfixes.
  • Translated the word Password using google translate. If there are translators around, they should give it a look.
  • Server doesn't know how to return a proper JSON formatted error. Look into that.
  • Added the most basic server-side validation for email. This is needed so that anon users can't impersonate a named user.
  • Tests not updated or written. TODO if this pull request is of interest to upstream.

panta82 avatar Jul 17 '16 12:07 panta82

This is a pretty neat solution, I'll need to review it more thoroughly. I don't like the user management in Isso, it should be solved by $framework a level above (which may provide pluggable user management, whatever. Not a realm of Isso IMHO).

posativ avatar Sep 20 '16 19:09 posativ

@posativ

Yeah, the real deal would be adding an extensible user support, where the current anon system is just the "default provider" or something. I can also see how any user system would detract from the KISS style of this package.

However, the inability to stylize and protect my own comments (which is expected behavior in any commenting system) was a deal breaker for me. So I added this simple thing for my own purposes.

panta82 avatar Sep 21 '16 16:09 panta82

Any update on this? Styling mod comments and preventing impersonation is a really useful feature.

StructByLightning avatar Jul 17 '18 01:07 StructByLightning

This is really nice, love the additional error highlighting, that it something I thought was missing. And the user system is so simple, I don't think there is a need for a full fledged framework user system. These are must have changes!

brad avatar Dec 25 '18 16:12 brad