fix: вернул правильный порядок вызовов аутентификации и авторизации.

parent 6f14ab8c
......@@ -50,7 +50,8 @@ namespace PhoneStore
app.UseStaticFiles();
app.UseRouting();
app.UseAuthorization().UseAuthentication();
app.UseAuthentication();
app.UseAuthorization();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllerRoute(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment