Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/30/16 16:52:40 (9 years ago)
Author:
jlodewyc
Message:

#2582 Start angular OKB manager, data loaded

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  
    2020#endregion
    2121
    22 using HeuristicLab.Clients.Hive.WebJobManager.Services;
     22
    2323using Microsoft.AspNetCore.Mvc;
    2424using System.ServiceModel.Security;
    2525using System;
     26using Microsoft.AspNetCore.Http;
     27using HeuristicLab.Clients.Hive.WebJobManager.Services;
    2628using HeuristicLab.Clients.Hive.WebJobManager.ViewModels;
    27 using Microsoft.AspNetCore.Http;
     29using HeuristicLab.Clients.Hive.WebJobManager.Services.Imports;
    2830
    2931namespace HeuristicLab.Clients.Hive.WebJobManager.Controllers
     
    100102                    {
    101103                        ViewBag.Title = "Login succesful";
    102                         weblog.newLoginOKBOnly(model,q);
     104                        weblog.newLoginOKBOnly(model,q, password);
    103105                        HttpContext.Session.SetString("UserId", model.userId.ToString());
    104106                        return RedirectToAction("Index", "Query");
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Controllers/JobController.cs

    r13860 r13862  
    2020#endregion
    2121
     22using HeuristicLab.Clients.Hive.WebJobManager.Services;
     23using HeuristicLab.Clients.Hive.WebJobManager.Services.Imports;
     24using HeuristicLab.Clients.Hive.WebJobManager.ViewModels;
     25using HeuristicLab.Common;
     26using HeuristicLab.Optimization;
     27using Microsoft.AspNetCore.Hosting;
     28using Microsoft.AspNetCore.Http;
    2229using Microsoft.AspNetCore.Mvc;
    23 using HeuristicLab.Clients.Hive.WebJobManager.Services;
     30using Microsoft.Net.Http.Headers;
    2431using System;
    2532using System.Collections.Generic;
     33using System.IO;
    2634using System.Linq;
     35using System.Threading;
    2736using 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 
    3837
    3938namespace HeuristicLab.Clients.Hive.WebJobManager.Controllers
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Controllers/QueryController.cs

    r13860 r13862  
    2121
    2222using HeuristicLab.Clients.Hive.WebJobManager.Services;
     23using HeuristicLab.Clients.Hive.WebJobManager.Services.Imports;
    2324using HeuristicLab.Clients.Hive.WebJobManager.ViewModels;
    2425using Microsoft.AspNetCore.Http;
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Controllers/ResourceController.cs

    r13860 r13862  
    2020#endregion
    2121
    22 using HeuristicLab.Clients.Access.Administration;
    2322using HeuristicLab.Clients.Hive.WebJobManager.Models;
    2423using HeuristicLab.Clients.Hive.WebJobManager.Services;
     24using HeuristicLab.Clients.Hive.WebJobManager.Services.Imports;
    2525using Microsoft.AspNetCore.Hosting;
    2626using Microsoft.AspNetCore.Http;
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Controllers/UserController.cs

    r13860 r13862  
    2020#endregion
    2121
    22 using HeuristicLab.Clients.Access.Administration;
    2322using HeuristicLab.Clients.Hive.WebJobManager.Services;
     23using HeuristicLab.Clients.Hive.WebJobManager.Services.Imports;
    2424using HeuristicLab.Clients.Hive.WebJobManager.ViewModels.User;
    2525using Microsoft.AspNetCore.Hosting;
     
    2727using Microsoft.AspNetCore.Mvc;
    2828using 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;
    3429
    3530namespace HeuristicLab.Clients.Hive.WebJobManager.Controllers
     
    191186                    accessClient.addMember(user, group);
    192187                }
    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() });
    194192            }
    195193            else
Note: See TracChangeset for help on using the changeset viewer.