aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Windows/DialogWindow.xaml.cs
blob: cfddd09e36cdc1ba4ab36990a6351e115d9e302c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using MahApps.Metro.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Tango.Scripting.IDE.Windows
{
    /// <summary>
    /// Interaction logic for DialogWindow.xaml
    /// </summary>
    public partial class DialogWindow : MetroWindow
    {
        public DialogWindow()
        {
            InitializeComponent();
        }
    }
}
span class="w"> } public ActionResult Login() { if (HttpContext.User.Identity.IsAuthenticated) { return RedirectToAction("Index", "Downloads", null); } return View(); } [HttpPost] public ActionResult Login(AccountLogin request) { var authResult = _ad_manager.ValidateUserCredentials(request.Email, request.Password); if (!_ad_manager.CanUserAccessCurrentEnvironment(request.Email)) { throw new AuthenticationException($"You do not have permissions to access the {MachineServiceConfig.DEPLOYMENT_SLOT.ToDescription()} environment."); } FormsAuthentication.SetAuthCookie(request.Email, true); return new HttpStatusCodeResult(HttpStatusCode.OK); } [Authorize] public ActionResult Logout() { FormsAuthentication.SignOut(); return Login(); } } }