David
unread,Jun 30, 2009, 10:49:27 AM6/30/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pylons-devel
Hi all,
I am using AuthKit in pylons with no issue up to now thanks to the
pylons Book.
But I did not find how to handle the following issue :
I want users to signin to access my application (sounds like not a big
deal). For those users that are not in the authkit users database
table, I use my own registration form in the controller of which I do
a
users = request.environ['authkit.users']
users.user_create(new_username, new_password)
+ "other verifications"
in case of success.
That is fine, but at the end of this controller, the new user has to
signin again so that the authkit authentication business happens
before accessing the protected pages...
My questions are :
Is there a way from a controller to setup AuthKit authentication
passing the username and password without having the user enter them
again ?
If not, maybe a better way to go would be to use the signin form to
register a new user, and if the user is not authenticated, call some
"catch" function that could validate the user as a new user doing the
"other verifications" and let AuthKit do the rest of verification ?
Is there any other solution so that the user doesn't have to enter is
user name and password again after registration ?
Hope my questions are clear...
David.