diff roundup/mailgw.py @ 1583:caae7d8934dc

set new email rego user password to random string
author Richard Jones <richard@users.sourceforge.net>
date Thu, 10 Apr 2003 05:12:42 +0000
parents c36df13925f9
children 21312a7564fd
line wrap: on
line diff
--- a/roundup/mailgw.py	Thu Apr 10 05:11:58 2003 +0000
+++ b/roundup/mailgw.py	Thu Apr 10 05:12:42 2003 +0000
@@ -73,15 +73,14 @@
 an exception, the original message is bounced back to the sender with the
 explanatory message given in the exception. 
 
-$Id: mailgw.py,v 1.113 2003-03-24 02:54:35 richard Exp $
+$Id: mailgw.py,v 1.114 2003-04-10 05:12:41 richard Exp $
 '''
 
 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
 import time, random, sys
 import traceback, MimeWriter, rfc822
-import hyperdb, date, password
 
-import rfc2822
+from roundup import hyperdb, date, password, rfc2822
 
 SENDMAILDEBUG = os.environ.get('SENDMAILDEBUG', '')
 
@@ -1026,6 +1025,7 @@
     if create:
         return db.user.create(username=address, address=address,
             realname=realname, roles=db.config.NEW_EMAIL_USER_ROLES,
+            password=password.Password(password.generatePassword()),
             **user_props)
     else:
         return 0

Roundup Issue Tracker: http://roundup-tracker.org/