Example #1
0
        private bool HasPhoneNumber()
        {
            var user = AspUserManager.FindById(User.Identity.GetUserId());

            if (user != null)
            {
                return(user.PhoneNumber != null);
            }
            return(false);
        }
Example #2
0
        private bool HasPassword()
        {
            var user = AspUserManager.FindById(User.Identity.GetUserId());

            if (user != null)
            {
                return(user.PasswordHash != null);
            }
            return(false);
        }