summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/gui/lecture/PermissionCreateLecture_GUI.java
diff options
context:
space:
mode:
authorNino Breuer2014-11-28 16:07:58 +0100
committerNino Breuer2014-11-28 16:07:58 +0100
commitc27d50c575ff5867aef8f10ccf2b5f2ac43dae08 (patch)
tree5c2e6586338308ce49e21272931e2341ae7d47ec /dozentenmodul/src/main/java/gui/lecture/PermissionCreateLecture_GUI.java
parentMerge branch 'master' of ssh://git.openslx.org/openslx-ng/tutor-module (diff)
downloadtutor-module-c27d50c575ff5867aef8f10ccf2b5f2ac43dae08.tar.gz
tutor-module-c27d50c575ff5867aef8f10ccf2b5f2ac43dae08.tar.xz
tutor-module-c27d50c575ff5867aef8f10ccf2b5f2ac43dae08.zip
• changed implementation of user authentication.
• changed position of class file • fixed some little things (not necessary to mention) Important Notes: •organizationID in token returns "wrong" values, therefore university is still set by client. To be fixed someday. • userID is the value with which the user starts his log in. this value is not represented in the token! (as it is not(!) the email). To be implemented someday, as this value is represented in the masterserver. • Feature isn't well tested.
Diffstat (limited to 'dozentenmodul/src/main/java/gui/lecture/PermissionCreateLecture_GUI.java')
-rw-r--r--dozentenmodul/src/main/java/gui/lecture/PermissionCreateLecture_GUI.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/dozentenmodul/src/main/java/gui/lecture/PermissionCreateLecture_GUI.java b/dozentenmodul/src/main/java/gui/lecture/PermissionCreateLecture_GUI.java
index 2fb0cc7a..f32648f0 100644
--- a/dozentenmodul/src/main/java/gui/lecture/PermissionCreateLecture_GUI.java
+++ b/dozentenmodul/src/main/java/gui/lecture/PermissionCreateLecture_GUI.java
@@ -1,7 +1,6 @@
package gui.lecture;
import gui.intro.About_GUI;
-import gui.intro.ListAllOtherUsers_GUI;
import gui.intro.MainMenue_GUI;
import java.awt.Color;
@@ -64,6 +63,7 @@ import org.apache.thrift.TException;
import server.generated.Person;
import server.generated.Server.Client;
import util.CheckIntegrity;
+import util.ListAllOtherUsers_GUI;
import util.OpenLinks;
@SuppressWarnings("serial")
@@ -123,16 +123,16 @@ public class PermissionCreateLecture_GUI extends JFrame {
public PermissionCreateLecture_GUI(Component formerGUI) {
- try {
- client.setTokenForSession(SessionData.session.getAuthToken());
- } catch (TException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent arg0) {
+ try {
+ client.setSessionInvalid(SessionData.session.getAuthToken());
+ } catch (TException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
System.exit(0);
}
});