Register Django user in punBB: ############################## - open register.php - find:
// Add user - after add: $salt = substr(md5(base64_encode(time())), 0, 5); $db->query('INSERT INTO auth_user (username, email, password, is_active, date_joined) VALUES ("'.$db->escape($username).'", "'.$email1.'", "sha1$'.$salt.'$'.sha1($salt.$password1).'", "1", "2006-08-29 20:00:34")'); ###################################### Register punBB user in Django: - use this code: import sha user = 'piotr' # login password = sha.new('piotr').hexdigest() # "piotr" is the password email = '[EMAIL PROTECTED]' # user email from django.db import connection cursor = connection.cursor() cursor.execute("INSERT INTO pun_users (group_id, username, password, email, registered) VALUES ('4', '"+ user +"', '"+ password +"', '"+ email +"', '1156874672')") - place it in your registration view and pass him user email, login and password :) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---