diff options
| author | Nino Breuer | 2014-11-20 18:09:50 +0100 |
|---|---|---|
| committer | Nino Breuer | 2014-11-20 18:09:50 +0100 |
| commit | f5ce6f8199b9ef962da0e27183eb8a56be5f1002 (patch) | |
| tree | c6d376e149be3c1c64f6fdee6d4b9c04008bec82 /dozentenmodul/src/main/java/gui/intro/Login_GUI.java | |
| parent | • authentication (diff) | |
| parent | Merge branch 'master' of ssh://git.openslx.org/openslx-ng/tutor-module (diff) | |
| download | tutor-module-f5ce6f8199b9ef962da0e27183eb8a56be5f1002.tar.gz tutor-module-f5ce6f8199b9ef962da0e27183eb8a56be5f1002.tar.xz tutor-module-f5ce6f8199b9ef962da0e27183eb8a56be5f1002.zip | |
Merge branch 'master' of ssh://git.openslx.org/openslx-ng/tutor-module
Diffstat (limited to 'dozentenmodul/src/main/java/gui/intro/Login_GUI.java')
| -rw-r--r-- | dozentenmodul/src/main/java/gui/intro/Login_GUI.java | 32 |
1 files changed, 5 insertions, 27 deletions
diff --git a/dozentenmodul/src/main/java/gui/intro/Login_GUI.java b/dozentenmodul/src/main/java/gui/intro/Login_GUI.java index a84175d5..561f826f 100644 --- a/dozentenmodul/src/main/java/gui/intro/Login_GUI.java +++ b/dozentenmodul/src/main/java/gui/intro/Login_GUI.java @@ -289,32 +289,7 @@ public class Login_GUI extends JFrame { if (loginType == LOGIN_TYPE_BWLEHRPOOL) { - /* - //offline mode in case the masterserver is not reachable. start programm with parameter: offline_mode - if(args.length != 0 && args[0].equals("offline_mode")) - { - SessionData.session.setServerAdress("141.79.128.102"); - System.out.println("Entering in offline_mode"); - String hochschule = "testhochschule.de"; - - person.verantwortlicher.setUsername("max.mustermann@"+hochschule); - person.verantwortlicher.setUserID("max.mustermann@"+hochschule); - person.verantwortlicher.setName("Max"); - person.verantwortlicher.setVorname("Mustermann"); - person.verantwortlicher.setEMail("max.mustermann@"+hochschule); - person.verantwortlicher.setHochschule(hochschule); - - person.verantwortlicher.setRole("Dozent"); - //person.verantwortlicher.setRole("Student"); - - ThriftConnection bwthrift = new ThriftConnection(); - server.generated.Server.Client bwClient = bwthrift.getThriftConnection(); - models.Client.clientcon.setClient(bwClient); - - } - else - { - */ + // start the authentication process against the masterserver org.openslx.imagemaster.thrift.iface.SessionData result = null; // Connect to Master @@ -393,9 +368,12 @@ public class Login_GUI extends JFrame { person.verantwortlicher.setHochschule(hochschule); // Spaeter ueber result.getRole zum Beispiel die Rolle holen - + if(lblusername.getText().trim().startsWith("admin@")){ + person.verantwortlicher.setRole("Admin"); + } else { person.verantwortlicher.setRole("Dozent"); //person.verantwortlicher.setRole("Student"); + } showMainMenu(); |
