4 def generate_url(config
, obj
):
6 r
= RC4(md5
.md5("%s %s" % (s
, config
["urlkey"])).hexdigest())
7 a
= r
.crypt(obj
["user.password"])
8 b
= md5
.md5(md5
.md5("%s %s %s %s" % (config
["urlsecret"], obj
["user.username"], a
, s
)).hexdigest()).hexdigest()
9 obj
["url"] = "%s?m=%s&h=%s&u=%s&r=%s" % (config
["url"], a
.encode("hex"), b
, obj
["user.username"].encode("hex"), s
.encode("hex"))
21 "subject": "%(config.bot)s account registration",
23 Thank you for registering.
24 To get your password please visit:
27 In case you forget your login/password use:
28 /msg %(config.bot)s REQUESTPASSWORD %(user.username)s %(user.email)s
30 Make sure you've read the %(config.bot)s FAQ at %(config.siteurl)s for a complete
31 reference on Q's commands and usage.
33 ** PLEASE READ %(config.securityurl)s --
34 it contains important information about keeping your account secure.
35 Note that QuakeNet Operators will not intervene if you fail to read
36 the above URL and your account is compromised as a result.
38 PLEASE REMEMBER THAT UNUSED ACCOUNTS ARE AUTOMATICALLY REMOVED
39 AFTER %(config.cleanup)d DAYS, AND ALL CHANLEVS ARE LOST!
41 NB: Save this email for future reference.
44 2: { "subject": "%(config.bot)s password request", "body": """
45 Your username/password is:
47 Username: %(user.username)s
48 Password: %(user.password)s
50 To auth yourself to %(config.bot)s, type the following command
52 /MSG %(config.bot)s@%(config.server)s AUTH %(user.username)s %(user.password)s
54 3: { "subject": "%(config.bot)s password change", "body": "Your new password: %(user.password)s", }
,
55 5: { "subject": "%(config.bot)s email change", "body": """
56 Your email address has been changed on %(config.bot)s.