Jump to content


- - - - -

Site logins, not (really) "manager"


  • You cannot reply to this topic
3 replies to this topic

#1 Mark Stanton

    Etomite Forum Fan

  • Member
  • Pip
  • 119 posts

Posted 13 March 2007 - 02:57 PM

OK, so this (www.wiltshirefarmersmarkets.org.uk) site is starting to get complex!

I'm using the "authenticate_visitor" snippet to let (controlled) people log in. They don't get access to the manager, there are various extra pages available to three groups of users.

But I want to know who logged in and when.
I notice that the Eto front end doesn't use this (authenticate visitor) method, predated it I expect?
But I can see how to add that logging. But I have to do it in the Etomite "userlogin" method, which is starting to fiddle in areas that p'raps I oughtn't.

It also opens up a wider issue, I want to make some site admin pages, stuff like who which "managers" logged in, when &tc. I don't want to try to put these in the manager, of course. But there doesn't appear to be an "admin" group that I can make them dependant on...

It looks to me like I'm starting to fiddle with guts that could do with a bit of being sensible about.
Any thoughts (Ralph)?

Regards
Mark

#2 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 13 March 2007 - 03:25 PM

Although visitor logging wasn't written into the authentication code I'm sure it could be implemented... Your "admin" sections can be handled using Roles and Document Groups...

#3 Mark Stanton

    Etomite Forum Fan

  • Member
  • Pip
  • 119 posts

Posted 13 March 2007 - 05:36 PM

View PostRalph, on Mar 13 2007, 03:25 PM, said:

Although visitor logging wasn't written into the authentication code I'm sure it could be implemented...
Well, the code is there in login.processor.php, I just didn't want to put it in to etomite::userlogin without talking to you about it, it seemed rude.

View PostRalph, on Mar 13 2007, 03:25 PM, said:

Your "admin" sections can be handled using Roles and Document Groups...
Well, my other sections are handled this way (I'm feeding the (prefix)_manager_users & (prefix)_user_roles tables from the application tables, held in the same Eto database), but my point is there doesn't appear to be a separate "administrator" group. Hmmm, not so different I s'pose.. Yeah, no problem.

#4 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 13 March 2007 - 05:41 PM

If you want to attempt pulling code from one of the manager modules and adapting it either into a snippet or experimenting with the parser functions, go right ahead... Just don't post any modified code base code without letting me take a look at it first... If the modifications are deemed advantageous to the masses then it might just make it into the official code base for future releases... Give me a shout if you have questions...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users