Files
server/src/Api/Controllers/AuthController.cs

21 lines
546 B
C#
Raw Normal View History

2015-12-08 22:57:38 -05:00
using System;
2016-05-19 19:10:24 -04:00
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Authorization;
2015-12-08 22:57:38 -05:00
using Bit.Core.Exceptions;
namespace Bit.Api.Controllers
{
[Obsolete]
2015-12-08 22:57:38 -05:00
[Route("auth")]
public class AuthController : Controller
{
[HttpPost("token")]
[AllowAnonymous]
public IActionResult PostToken()
2015-12-08 22:57:38 -05:00
{
throw new BadRequestException("You are using an outdated version of bitwarden that is no longer supported. " +
"Please update your app first and try again.");
2015-12-08 22:57:38 -05:00
}
}
}