mirror of
https://github.com/bitwarden/server.git
synced 2025-04-26 23:32:19 -05:00
21 lines
546 B
C#
21 lines
546 B
C#
using System;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Bit.Core.Exceptions;
|
|
|
|
namespace Bit.Api.Controllers
|
|
{
|
|
[Obsolete]
|
|
[Route("auth")]
|
|
public class AuthController : Controller
|
|
{
|
|
[HttpPost("token")]
|
|
[AllowAnonymous]
|
|
public IActionResult PostToken()
|
|
{
|
|
throw new BadRequestException("You are using an outdated version of bitwarden that is no longer supported. " +
|
|
"Please update your app first and try again.");
|
|
}
|
|
}
|
|
}
|