Added missing localization, fixed missing order name

This commit is contained in:
2025-11-29 23:20:18 +01:00
parent f930d9e408
commit db8f2fcdf1
14 changed files with 548 additions and 32 deletions

View File

@@ -0,0 +1,35 @@
using System.CodeDom.Compiler;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
namespace OneForMe.Controllers;
[Route("[controller]")]
public class AccountController : Controller
{
private readonly SignInManager<IdentityUser> _signInManager;
public AccountController(SignInManager<IdentityUser> signInManager)
{
_signInManager = signInManager;
}
[HttpGet("Login")]
public IActionResult Login()
{
return View();
}
[HttpGet("Register")]
public IActionResult Register()
{
return View();
}
[HttpGet("Logout")]
public async Task<IActionResult> Logout()
{
await _signInManager.SignOutAsync();
return RedirectToAction("Index", "Home");
}
}