fix: url interna
This commit is contained in:
parent
0fb14e6f14
commit
52849487a1
@ -49,7 +49,15 @@ namespace QRRapidoApp.Controllers
|
||||
[HttpGet]
|
||||
public IActionResult LoginMicrosoft(string returnUrl = "/")
|
||||
{
|
||||
var redirectUrl = Url.Action("MicrosoftCallback", "Account", new { returnUrl });
|
||||
var baseUrl = _configuration.GetSection("App:BaseUrl").Value;
|
||||
//var redirectUrl = Url.Action("MicrosoftCallback", "Account", new { returnUrl });
|
||||
var redirectUrl = "";
|
||||
|
||||
if (returnUrl == "/")
|
||||
{
|
||||
redirectUrl = $"{baseUrl}/Account/MicrosoftCallback";
|
||||
}
|
||||
|
||||
var properties = new AuthenticationProperties { RedirectUri = redirectUrl };
|
||||
return Challenge(properties, MicrosoftAccountDefaults.AuthenticationScheme);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user