From: Jeff D. <da...@da...> - 2002-02-09 17:33:47
|
Bernd Duesmann said: > so if anyone has figured out how userauthentication works it would be > very usefull for me. If you want to try hacking it in yourself, here's some vague hints as to where to start (PhpWiki 1.3 CVS): As has been noted, PhpWiki currently has no support at all for registering or keeping track of users, so you'll have to figure out a way to do that... To hook into PhpWiki's login/authentication mechanism: All user logins/signins go through WikiUser::_pwcheck(). This method checks the provided username and password. Currently it returns one of three values: WIKIAUTH_ADMIN: if the username and password are those of the administrator. WIKIAUTH_BOGO: if bogo-login's are allowed, and the username is of a suitable format. false: Bad username or password. Login fails. You want to modifiy this method so that it can also return: WIKIAUTH_USER: username and password match that of a valid registered user. If you do this, it should "just work" (hah). But I haven't really tried it, so it may well not. If you have trouble with that part, let me know, and I'd be happy to help debug. |