|
@ -163,7 +163,7 @@ namespace CustomerOnlineV2.Controllers |
|
|
_logger.LogDebug("ACCOUNTCONTROLLER | FORCECHANGEPASSWORD | REQUEST | " + JsonConvert.SerializeObject(model)); |
|
|
_logger.LogDebug("ACCOUNTCONTROLLER | FORCECHANGEPASSWORD | REQUEST | " + JsonConvert.SerializeObject(model)); |
|
|
if (string.IsNullOrEmpty(logindetails.UserName)) |
|
|
if (string.IsNullOrEmpty(logindetails.UserName)) |
|
|
{ |
|
|
{ |
|
|
_logger.LogError("ACCOUNTCONTROLLER | FORCECHANGEPASSWORD | INVALID logindetails.UserName"); |
|
|
|
|
|
|
|
|
_logger.LogError("ACCOUNTCONTROLLER | RESETPASSWORD | INVALID logindetails.UserName"); |
|
|
RedirectToAction("Index", "Account"); |
|
|
RedirectToAction("Index", "Account"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -171,7 +171,7 @@ namespace CustomerOnlineV2.Controllers |
|
|
Log.Debug("Change password response: " + JsonConvert.SerializeObject(response)); |
|
|
Log.Debug("Change password response: " + JsonConvert.SerializeObject(response)); |
|
|
if (response.ResponseCode == ResponseHelper.SUCCESS) |
|
|
if (response.ResponseCode == ResponseHelper.SUCCESS) |
|
|
{ |
|
|
{ |
|
|
Log.Debug("ACCOUNTCONTROLLER | CHANGEPASSWORD | REQUEST ARRIVED | " + logindetails.UserName); |
|
|
|
|
|
|
|
|
Log.Debug("ACCOUNTCONTROLLER | RESETPASSWORD | REQUEST ARRIVED | " + logindetails.UserName); |
|
|
HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme); |
|
|
HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme); |
|
|
return RedirectToAction("Index", "Account"); |
|
|
return RedirectToAction("Index", "Account"); |
|
|
} |
|
|
} |
|
|