← Back to team overview

openerp-india team mailing list archive

[Bug 1104076] [NEW] Exception on reset password (patch)

 

Public bug reported:

When resetting the password a test on context is missing in res_users.py
of auth_signup

Patch:

=== modified file 'auth_signup/res_users.py'
--- auth_signup/res_users.py	2013-01-22 14:59:25 +0000
+++ auth_signup/res_users.py	2013-01-24 14:09:39 +0000
@@ -248,7 +248,7 @@
 
         # send email to users with their signup url
         template = False
-        if context.get('create_user'):
+        if context and context.get('create_user'):
             try:
                 template = self.pool.get('ir.model.data').get_object(cr, uid, 'auth_signup', 'set_password_email')
             except ValueError:

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1104076

Title:
  Exception on reset password (patch)

Status in OpenERP Addons (modules):
  New

Bug description:
  When resetting the password a test on context is missing in
  res_users.py of auth_signup

  Patch:

  === modified file 'auth_signup/res_users.py'
  --- auth_signup/res_users.py	2013-01-22 14:59:25 +0000
  +++ auth_signup/res_users.py	2013-01-24 14:09:39 +0000
  @@ -248,7 +248,7 @@
   
           # send email to users with their signup url
           template = False
  -        if context.get('create_user'):
  +        if context and context.get('create_user'):
               try:
                   template = self.pool.get('ir.model.data').get_object(cr, uid, 'auth_signup', 'set_password_email')
               except ValueError:

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1104076/+subscriptions


Follow ups

References