|
@@ -15,7 +15,7 @@ from tg.i18n import ugettext as _
|
15
|
15
|
class PODPublicApiController(plb.BaseController):
|
16
|
16
|
|
17
|
17
|
@tg.expose()
|
18
|
|
- def create_account(self, email='', password='', retyped_password='', **kw):
|
|
18
|
+ def create_account(self, email='', password='', retyped_password='', real_name='', **kw):
|
19
|
19
|
if email=='' or password=='' or retyped_password=='':
|
20
|
20
|
tg.flash(_('Account creation error: please fill all the fields'), 'error')
|
21
|
21
|
tg.redirect(tg.lurl('/'))
|
|
@@ -30,7 +30,7 @@ class PODPublicApiController(plb.BaseController):
|
30
|
30
|
|
31
|
31
|
loNewAccount = pld.PODStaticController.createUser()
|
32
|
32
|
loNewAccount.email_address = email
|
33
|
|
- loNewAccount.display_name = email
|
|
33
|
+ loNewAccount.display_name = real_name if real_name!='' else email
|
34
|
34
|
loNewAccount.password = password
|
35
|
35
|
|
36
|
36
|
loUserGroup = pld.PODStaticController.getGroup('user')
|