aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/EmbroideryDisplayView.xaml
blob: 22414b4b2f7edbd8db5dcb25c4587b44f1966025 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
generated by cgit v1.3.1 (git 2.54.0) at 2026-07-12 17:52:47 +0000
 


">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();
        }
    }
}