Correction (test)
authorCyril Robert <Cyril Robert crobert@inverse.ca>
Tue, 30 Mar 2010 14:42:02 +0000 (10:42 -0400)
committerCyril Robert <Cyril Robert crobert@inverse.ca>
Tue, 30 Mar 2010 14:42:02 +0000 (10:42 -0400)
Apps/roundup/auf_roa.py

index 3381795..783785f 100644 (file)
@@ -69,11 +69,11 @@ class AufRoaLoginAction(LoginAction):
         except:
             if roa:
                 props = {'realname': "%s %s" % (roa['first_name'], roa['last_name']),
-                     'username': roa['email'],
-                     'address': roa['email']}
+                     'username': email,
+                     'address': email}
+                props['roles'] = self.db.config.NEW_WEB_USER_ROLES
                 self.journaltag = 'admin'
                 cl = self.db.user
-                props['roles'] = self.db.config.NEW_WEB_USER_ROLES
                 self.userid = cl.create (**props)
                 self.db.commit ()
                 self.client.userid = self.db.user.lookup(self.client.user)