diff --git a/Yavsc/AppDatacoiffure/googledatastore/Google.Apis.Auth.OAuth2.Responses.TokenResponse-102000595368078995008 b/Yavsc/AppDatacoiffure/googledatastore/Google.Apis.Auth.OAuth2.Responses.TokenResponse-102000595368078995008 deleted file mode 100644 index 6f2c23c7..00000000 --- a/Yavsc/AppDatacoiffure/googledatastore/Google.Apis.Auth.OAuth2.Responses.TokenResponse-102000595368078995008 +++ /dev/null @@ -1 +0,0 @@ -{"access_token":"ya29.GmnbBd3zsDsLPjI-ZkGhHLRiXI14NeNx7CJ5_XMlzu_1qOaLsrL-m3VWbKopO19yrnwK9z8CA6tv2QNxR3dkAU3Fsb29j6vcPsX3R7VNElHLCiwBF4w9jeNsA7fgw-0ydDjc3X78Oh_xlfM","token_type":"Bearer","expires_in":3600,"Issued":"2018-06-15T11:18:16.208+02:00","IssuedUtc":"2018-06-15T11:18:16.208+02:00"} \ No newline at end of file diff --git a/Yavsc/AppDatacoiffure/googledatastore/Google.Apis.Auth.OAuth2.Responses.TokenResponse-111395572362177872801 b/Yavsc/AppDatacoiffure/googledatastore/Google.Apis.Auth.OAuth2.Responses.TokenResponse-111395572362177872801 deleted file mode 100644 index 0e9d008d..00000000 --- a/Yavsc/AppDatacoiffure/googledatastore/Google.Apis.Auth.OAuth2.Responses.TokenResponse-111395572362177872801 +++ /dev/null @@ -1 +0,0 @@ -{"access_token":"ya29.GmnbBfcZapScUHU2T2Bb2c8t5D4uUbsfrFRXxe05zYQTG22BmnHjeU33QeqJFSPxo8H5fk0EuN2YrhwZxa0FRjkdhOHOTtCwqUubfdN5tfIpXci3PKBBe9kAEI5LlLDxRMprak03VCyDwfg","token_type":"Bearer","expires_in":3599,"Issued":"2018-06-15T15:05:41.809+02:00","IssuedUtc":"2018-06-15T15:05:41.809+02:00"} \ No newline at end of file diff --git a/Yavsc/Controllers/Accounting/AccountController.cs b/Yavsc/Controllers/Accounting/AccountController.cs index ab7d74d9..82c545e4 100644 --- a/Yavsc/Controllers/Accounting/AccountController.cs +++ b/Yavsc/Controllers/Accounting/AccountController.cs @@ -247,19 +247,21 @@ namespace Yavsc.Controllers public async Task SendEMailForConfirm() { var user = await _userManager.FindByIdAsync(User.GetUserId()); - ViewBag.EmailSent = SendEMailForConfirm(user); - return View("ConfirmEmailSent"); + ViewBag.EmailSent = await SendEMailForConfirmAsync(user); + return View("ConfirmEmailSent",user.Email); } - private async Task SendEMailForConfirm(ApplicationUser user) + private async Task SendEMailForConfirmAsync(ApplicationUser user) { var code = await _userManager.GenerateEmailConfirmationTokenAsync(user); - var callbackUrl = Url.Action("ConfirmEmail", "Account", new { userId = user.Id, code = code }, protocol: HttpContext.Request.Scheme); + var callbackUrl = Url.Action("ConfirmEmail", "Account", + new { userId = user.Id, code = code }, protocol: HttpContext.Request.Scheme); var res = await _emailSender.SendEmailAsync(user.UserName, user.Email, this._localizer["ConfirmYourAccountTitle"], string.Format(this._localizer["ConfirmYourAccountBody"], - _siteSettings.Title, callbackUrl, _siteSettings.Slogan, _siteSettings.Audience)); - return res!=null; + _siteSettings.Title, callbackUrl, _siteSettings.Slogan, + _siteSettings.Audience)); + return res; } // // POST: /Account/LogOff diff --git a/Yavsc/Views/Account/ConfirmEmailSent.cshtml b/Yavsc/Views/Account/ConfirmEmailSent.cshtml index a0fa37eb..b598fd9c 100755 --- a/Yavsc/Views/Account/ConfirmEmailSent.cshtml +++ b/Yavsc/Views/Account/ConfirmEmailSent.cshtml @@ -7,7 +7,7 @@

@ViewData["Title"].

- Un message vient de vous être envoyé, à l'adresse e-mail @Model, + Un message vient de vous être envoyé, à votre adresse e-mail ( @Model , id:@ViewBag.EmailSent ), Veuillez s’il vous plait confirmer cette adresse de courrier en utilisant le lien hyper-texte qui s'y trouve.