コード例 #1
0
        public async Task <bool> VerifyEmailAsync(string accessToken, VerifiedEmailData verifiedEmailData)
        {
            httpClient.SetBearerToken(accessToken);
            var response = await httpClient.PostAsJsonAsync(Controller + "VerifyEmail", verifiedEmailData);

            return(await response.CreateResponseAsync <bool>());
        }
コード例 #2
0
        public async Task<bool> VerifyEmailAsync(VerifiedEmailData verifiedEmailData)
        {
            var response = await httpClient.PostAsJsonAsync(Controller + "VerifyEmail", verifiedEmailData);

            return await response.CreateResponseAsync<bool>();
        }
コード例 #3
0
        public async Task<IHttpActionResult> VerifyEmail(VerifiedEmailData model)
        {
            var result = await userManager.ConfirmEmailAsync(model.Id.ToString(), model.Code);

            return Ok(result.Succeeded);
        }
コード例 #4
0
        public async Task <IHttpActionResult> VerifyEmail(VerifiedEmailData model)
        {
            var result = await userManager.ConfirmEmailAsync(model.Id.ToString(), model.Code);

            return(Ok(result.Succeeded));
        }