nullcheck on refId
This commit is contained in:
parent
b704d05f4e
commit
b250b78e9c
|
|
@ -98,6 +98,7 @@ public class AcLoginServiceServer<TResultLoggedInModel, TDal, TDbContext, TUser,
|
||||||
user.EmailAddress = email;
|
user.EmailAddress = email;
|
||||||
user.EmailConfirmed = true;
|
user.EmailConfirmed = true;
|
||||||
user.Password = PasswordHasher.HashPassword(password, PasswordHasher.GenerateDynamicSalt(userId));
|
user.Password = PasswordHasher.HashPassword(password, PasswordHasher.GenerateDynamicSalt(userId));
|
||||||
|
if(referralId != null)
|
||||||
user.RefferalId = referralId;
|
user.RefferalId = referralId;
|
||||||
var address = Activator.CreateInstance<TProfileAddress>();
|
var address = Activator.CreateInstance<TProfileAddress>();
|
||||||
address.Id = Guid.NewGuid();
|
address.Id = Guid.NewGuid();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue