- Timestamp:
- 05/30/16 16:52:40 (9 years ago)
- Location:
- branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Controllers
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Controllers/HomeController.cs
r13860 r13862 20 20 #endregion 21 21 22 using HeuristicLab.Clients.Hive.WebJobManager.Services; 22 23 23 using Microsoft.AspNetCore.Mvc; 24 24 using System.ServiceModel.Security; 25 25 using System; 26 using Microsoft.AspNetCore.Http; 27 using HeuristicLab.Clients.Hive.WebJobManager.Services; 26 28 using HeuristicLab.Clients.Hive.WebJobManager.ViewModels; 27 using Microsoft.AspNetCore.Http;29 using HeuristicLab.Clients.Hive.WebJobManager.Services.Imports; 28 30 29 31 namespace HeuristicLab.Clients.Hive.WebJobManager.Controllers … … 100 102 { 101 103 ViewBag.Title = "Login succesful"; 102 weblog.newLoginOKBOnly(model,q );104 weblog.newLoginOKBOnly(model,q, password); 103 105 HttpContext.Session.SetString("UserId", model.userId.ToString()); 104 106 return RedirectToAction("Index", "Query"); -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Controllers/JobController.cs
r13860 r13862 20 20 #endregion 21 21 22 using HeuristicLab.Clients.Hive.WebJobManager.Services; 23 using HeuristicLab.Clients.Hive.WebJobManager.Services.Imports; 24 using HeuristicLab.Clients.Hive.WebJobManager.ViewModels; 25 using HeuristicLab.Common; 26 using HeuristicLab.Optimization; 27 using Microsoft.AspNetCore.Hosting; 28 using Microsoft.AspNetCore.Http; 22 29 using Microsoft.AspNetCore.Mvc; 23 using HeuristicLab.Clients.Hive.WebJobManager.Services;30 using Microsoft.Net.Http.Headers; 24 31 using System; 25 32 using System.Collections.Generic; 33 using System.IO; 26 34 using System.Linq; 35 using System.Threading; 27 36 using System.Threading.Tasks; 28 using HeuristicLab.Clients.Hive.WebJobManager.ViewModels;29 using Microsoft.AspNetCore.Http;30 31 using System.IO;32 using Microsoft.Net.Http.Headers;33 using Microsoft.AspNetCore.Hosting;34 using HeuristicLab.Common;35 using HeuristicLab.Optimization;36 using System.Threading;37 38 37 39 38 namespace HeuristicLab.Clients.Hive.WebJobManager.Controllers -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Controllers/QueryController.cs
r13860 r13862 21 21 22 22 using HeuristicLab.Clients.Hive.WebJobManager.Services; 23 using HeuristicLab.Clients.Hive.WebJobManager.Services.Imports; 23 24 using HeuristicLab.Clients.Hive.WebJobManager.ViewModels; 24 25 using Microsoft.AspNetCore.Http; -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Controllers/ResourceController.cs
r13860 r13862 20 20 #endregion 21 21 22 using HeuristicLab.Clients.Access.Administration;23 22 using HeuristicLab.Clients.Hive.WebJobManager.Models; 24 23 using HeuristicLab.Clients.Hive.WebJobManager.Services; 24 using HeuristicLab.Clients.Hive.WebJobManager.Services.Imports; 25 25 using Microsoft.AspNetCore.Hosting; 26 26 using Microsoft.AspNetCore.Http; -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Controllers/UserController.cs
r13860 r13862 20 20 #endregion 21 21 22 using HeuristicLab.Clients.Access.Administration;23 22 using HeuristicLab.Clients.Hive.WebJobManager.Services; 23 using HeuristicLab.Clients.Hive.WebJobManager.Services.Imports; 24 24 using HeuristicLab.Clients.Hive.WebJobManager.ViewModels.User; 25 25 using Microsoft.AspNetCore.Hosting; … … 27 27 using Microsoft.AspNetCore.Mvc; 28 28 using System; 29 using System.Collections.Generic;30 using System.Linq;31 using System.Net.Mail;32 using System.ServiceModel.Security;33 using System.Threading.Tasks;34 29 35 30 namespace HeuristicLab.Clients.Hive.WebJobManager.Controllers … … 191 186 accessClient.addMember(user, group); 192 187 } 193 return RedirectToAction("SelectUser", new { id = uid.ToString() }); 188 if (uid != Guid.Empty && uid == weblog.getCurrentUser(userId).currentUser.Id) 189 return RedirectToAction("Index", "Home");//Logout if current user 190 else 191 return RedirectToAction("SelectUser", new { id = uid.ToString() }); 194 192 } 195 193 else
Note: See TracChangeset
for help on using the changeset viewer.