[pmwiki-users] Login from cookbook

Thomas Lundgren publik at lundgren.nu
Mon May 29 07:53:30 CDT 2017

Thank you Petko but...

My needs was far more simple then that. I just needed the cookbook to 
login the user with a preset username and preset password. The Cookbooks 
you refereed to was far more complex.

After some "re-enginering" in the PmWiki code I found the function 
AuthUserId( $page, $user_id, $user_pwd ) that did exactly what I 
needed.  And everything now works exactly as I wanted it to do.

Are there any concerns that I call this function from my cookbook for 
logging in a user into PmWiki?

/ T.

Den 2017-05-20 kl. 17:19, skrev Petko Yotov:
> On 2017-05-18 21:25, Thomas Lundgren wrote:
>> I would like to perform a login to PmWiki (with authuser enabled) from
>> a cookbook. Is that possible in any easy way?
>> The reason for this is that I have a database with user-accounts and
>> would like a singel-login that includes PmWiki.
> It may not be "an easy way", but is doable. A number of people have 
> tried this, and you may be able to adapt one of their solutions to you:
> http://www.pmwiki.org/wiki/Cookbook/Cookbook?fmt=RecipeList%23recipelist&action=search&q=authuser+mysql
> The page "AuthUserDbase (Account Management Page)" claims to be 
> exactly what you need. Other than that, the recipe UserAdmin is most 
> actively supported AFAIK.
> Petko
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users

More information about the pmwiki-users mailing list