# HG changeset patch # User Marcin Kuzminski # Date 2019-11-12 14:11:35 # Node ID 51a736f3c07f89f9cf665a515122021ad116d219 # Parent 0532bdf79f658f522c989e2bec48fe78d45ad754 registration: properly expose first_name/last_name into email fake object. diff --git a/rhodecode/model/user.py b/rhodecode/model/user.py --- a/rhodecode/model/user.py +++ b/rhodecode/model/user.py @@ -412,6 +412,10 @@ class UserModel(BaseModel): self.sa.flush() user_data = new_user.get_dict() + user_data.update({ + 'first_name': user_data.get('firstname'), + 'last_name': user_data.get('lastname'), + }) kwargs = { # use SQLALCHEMY safe dump of user data 'user': AttributeDict(user_data),