This is what I would like to happen:
A user goes to the site, he see the log in screen that has 2 entry fields -
user name and password.
The user enteres the data and presses the submit button.
Now I want to take what the user entered and see if I have the same user and
password defined in acl_users folder, if so I want to give him the role that
that user in the acl_users folder have.
And than based on that role direct him to the appropriate page
What I don't want is that the zope will pop up his login window, in essence I
want to do my own authentication, validation and role assigning.
I hope this clears up what I want, I was told that I need the PAS plugin but I
have no idea how to use it, if there is a way to do it without PAS I would very
much like to hear it.
From: Lennart Regebro [mailto:rege...@gmail.com]
Sent: Sunday, March 08, 2009 10:44 AM
To: Dvir Bar-lev
Subject: Re: [Zope-PAS] user login and roles
On Sun, Mar 8, 2009 at 09:33, Dvir Bar-lev <dvi...@puresight.com> wrote:
> Hi all.
> I need help please, I downloaded the pas plugin for zope but I can't find
> any documentation on how to use it.
> What I want to do is the following:
> I want to define 2 roles - ISP and Parent.
> I want my site visitors to arrive to a log in page that has 2 fileds - user
> name and password.
> What I want to do is to assign one of the roles above to each user based on
> the user name and the password en entered in the above form and direct him
> to the appropriate page, I tried to look in the internet but I can't find
> any way of doing this.
> If there is a way to do it without using the pas plugin I would be happy
> with that too.
> Please help me, I'm utterly stuck and I don't have a clue what to do.
> Tx in advance
> Zope-PAS mailing list
As mentioned elsewhere, PAS is overkill for this. You can assign roles
to uses with the normal user folder.
Lennart Regebro: Pythonista, Barista, Notsotrista.
+33 661 58 14 64
Zope-PAS mailing list