Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
 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;
Ejemplo n.º 4
0
 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;