Exemplo n.º 1
0
        public IActionResult OnGet(string userUuid = null)
        {
            if (userUuid == null)
            {
                return(BadRequest("A user UUID must be specified."));
            }
            else
            {
                try
                {
                    userUuid = _dataProtectionProvider.CreateProtector(nameof(EmailNotConfirmedModel)).Unprotect(userUuid);
                }
                catch (Exception)
                {
                    return(BadRequest("The user UUID is invalid."));
                }

                Input = new UserUuidSpec
                {
                    UserUuid = userUuid
                };

                return(Page());
            }
        }
Exemplo n.º 2
0
        public IActionResult OnGet(string userUuid = null)
        {
            if (userUuid == null)
            {
                return(BadRequest("A user UUID must be specified."));
            }
            else
            {
                Input = new UserUuidSpec
                {
                    UserUuid = userUuid
                };

                return(Page());
            }
        }