def createUser(self, externalUser): #UserModel user = User() user.first_name = externalUser['name']['givenName'] user.last_name = externalUser['name']['familyName'] user.email_address = externalUser['emails'][0]['value'] user.save() return user
def createUser (self, externalUser) : #UserModel user = User(); user.first_name = externalUser['first_name']; user.last_name = externalUser['last_name']; user.email_address = externalUser['email']; user.save(); return user;
def createUser (self, externalUser) : #UserModel user = User(); user.first_name = externalUser['name']['givenName']; user.last_name = externalUser['name']['familyName']; user.email_address = externalUser['emails'][0]['value']; user.save(); return user;
def createUser(self, externalUser): #UserModel user = User() user.first_name = externalUser['first_name'] user.last_name = externalUser['last_name'] user.email_address = externalUser['email'] user.save() return user