|
|
@ -432,27 +432,6 @@ namespace BCS.BMC.Controllers |
|
|
|
return Ok("Success"); |
|
|
|
} |
|
|
|
|
|
|
|
//[HttpPost]
|
|
|
|
//public async Task<IActionResult> ForgotPasswordForBmcUser([FromBody] ForgotPasswordInput input)
|
|
|
|
//{
|
|
|
|
// using (HttpClient client = new HttpClient())
|
|
|
|
// {
|
|
|
|
// var baseUrl = input.CompanyUrl + "/api/services/bwac/employeeRegister/RegisterEmployeeAsNewUser";
|
|
|
|
|
|
|
|
// var data = new
|
|
|
|
// {
|
|
|
|
// userName = input.UserName,
|
|
|
|
// AppType = input.AppType
|
|
|
|
// };
|
|
|
|
// var requestJson = JsonConvert.SerializeObject(data);
|
|
|
|
// var requestContent = new StringContent(requestJson.ToString());
|
|
|
|
// requestContent.Headers.ContentType = new MediaTypeWithQualityHeaderValue("application/json");
|
|
|
|
// HttpResponseMessage response = await client.PostAsync(baseUrl, requestContent);
|
|
|
|
// return Ok("Success");
|
|
|
|
// }
|
|
|
|
//}
|
|
|
|
//----------------------
|
|
|
|
|
|
|
|
[HttpPost] |
|
|
|
public async Task<IActionResult> GetBmcPhoneOrEmailByUserId([FromBody] ForgotPasswordInput input) |
|
|
|
{ |
|
|
@ -471,7 +450,7 @@ namespace BCS.BMC.Controllers |
|
|
|
|
|
|
|
using (HttpClient client = new HttpClient()) |
|
|
|
{ |
|
|
|
var baseUrl = input.CompanyUrl + "api/services/bwac/bmcUserForgotPassword/GetPhoneOrEmailByUserId"; |
|
|
|
var baseUrl = input.CompanyUrl + "/api/services/bwac/bmcUserForgotPassword/GetPhoneOrEmailByUserId"; |
|
|
|
|
|
|
|
var data = new |
|
|
|
{ |
|
|
@ -523,7 +502,7 @@ namespace BCS.BMC.Controllers |
|
|
|
|
|
|
|
using (HttpClient client = new HttpClient()) |
|
|
|
{ |
|
|
|
var baseUrl = input.CompanyUrl + "api/services/bwac/bmcUserForgotPassword/ForgotPassword"; |
|
|
|
var baseUrl = input.CompanyUrl + "/api/services/bwac/bmcUserForgotPassword/ForgotPassword"; |
|
|
|
|
|
|
|
var data = new |
|
|
|
{ |
|
|
@ -565,7 +544,7 @@ namespace BCS.BMC.Controllers |
|
|
|
|
|
|
|
using (HttpClient client = new HttpClient()) |
|
|
|
{ |
|
|
|
var baseUrl = input.CompanyUrl + "api/services/bwac/bmcUserForgotPassword/BmcAuthenticateForgotPasswordCode"; |
|
|
|
var baseUrl = input.CompanyUrl + "/api/services/bwac/bmcUserForgotPassword/BmcAuthenticateForgotPasswordCode"; |
|
|
|
|
|
|
|
var data = new |
|
|
|
{ |
|
|
@ -604,7 +583,7 @@ namespace BCS.BMC.Controllers |
|
|
|
|
|
|
|
using (HttpClient client = new HttpClient()) |
|
|
|
{ |
|
|
|
var baseUrl = input.CompanyUrl + "api/services/bwac/bmcUserForgotPassword/BmcResetPassword"; |
|
|
|
var baseUrl = input.CompanyUrl + "/api/services/bwac/bmcUserForgotPassword/BmcResetPassword"; |
|
|
|
|
|
|
|
var data = new |
|
|
|
{ |
|
|
|