/// <summary>
 /// SetUserRegistration method implementation
 /// </summary>
 internal static MFAUser SetUserRegistration(MFAUser reg, bool resetkey = false, bool caninsert = true, bool email = false)
 {
     EnsureService();
     return(RuntimeRepository.SetMFAUser(Config, reg, resetkey, caninsert, email));
 }