I am working on 2factor authentication using KiiCloud and I am trying to allow users to changed their emails.
I found a logic error with KiiCloud when the user's EmailVerified flag remains TRUE after it is being changed.
Inside the user console, the new assigned email is in the TextBox. And below shows "Currently using (oldEmail)"
The Icon associates with the email shows a Question Mark (?) instead of a Star but Verified is still TRUE.
I understand the user need to verified their Email through their mailbox to make this go away, But I am trying to create a reminder for them in case users forget or ignore the first Email. I cannot do this with the VerifiedFlag remains True.
The following are the codes I used to change/update userEmail.
IdentityData.Builder builder = IdentityData.Builder.CreateWithEmail(newEmail);
IdentityData identity = builder.Build();
UserFields field = new UserFields();
field.Displayname = user.Displayname;
user.Update(identity, field, (KiiUser user2, Exception e) =>
My research lead me to have 2 potential solutions.