mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Added user image and navbar elements
This commit is contained in:
36
src/Controllers/SettingsController.cs
Normal file
36
src/Controllers/SettingsController.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using Berufsschule_HAM.Services;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Novell.Directory.Ldap;
|
||||
using Berufsschule_HAM.Models;
|
||||
using Berufsschule_HAM.Helpers;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using System.Text.Json;
|
||||
using System.Buffers.Text;
|
||||
|
||||
[Authorize]
|
||||
[Route("[controller]")]
|
||||
public class SettingsController : Controller
|
||||
{
|
||||
private readonly LdapService _ldap;
|
||||
private readonly ILogger<UsersController> _logger;
|
||||
|
||||
public SettingsController(LdapService ldap, ILogger<UsersController> logger)
|
||||
{
|
||||
_ldap = ldap;
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
[HttpGet("User")]
|
||||
public new IActionResult User(UsersIndexRequestModel requestModel)
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
[HttpGet("Admin")]
|
||||
public IActionResult Admin(UsersIndexRequestModel requestModel)
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user