Thanks Alex.
The code was useful as it now appears that the token may not be needed. It looks like it is the token used within a confirmation email at the point of registration? If that is the case I can hard code it to anything within the trigger as the user creation/management is taking place within Drupal.
Can anyone confirm that this is what the token is for?
If so then I can leave this and the other BLOBs (except user_options) empty.
Thanks again, Paul
I am not sure whether this is useful code as I am trying to create the user using a SQL command within a trigger.
On 6/1/07 8:01 AM, "Alexis Moinet" alexis.moinet@fpms.ac.be wrote:
Paul Coghlan a écrit :
As part of finalizing my integration of Drupal and Mediawiki I have decided to auto-create users at the point of creation within Drupal rather than let the AuthDrupal extension create them at some later point.
This gives me control over the userid as AuthDrupal allows them to drift, sync'ing by username and not userid.
Anyway, I am creating a trigger that creates the MW user but am not sure what goes into the user_token field. Can anyone give me a pointer as to how I generate this token?
Why not simply reuse the code for user creation from mediawiki ? it's in includes/SpecialUserLogin.php and User.php (User.php has a function setToken() that might help you)
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l