usos poprawki

This commit is contained in:
unknown 2020-01-05 15:15:35 +01:00
parent 84819400d4
commit e91163f84c

View File

@ -90,15 +90,15 @@ public class AuthorizationService {
TokenResponseDTO tokenResponseDTO = createUserAccountAndReturnHeaderToken(oauth_token, oauth_token_secret);
String finalOauth_token = oauth_token;
String finalOauth_token_secret = oauth_token_secret;
Thread thread = new Thread(() -> {
try {
if (!checkIfEmploye(finalOauth_token, finalOauth_token_secret, tokenResponseDTO.getUserId()))
/* Thread thread = new Thread(() -> {
try {*/
//if (!checkIfEmploye(finalOauth_token, finalOauth_token_secret, tokenResponseDTO.getUserId()))
updateUserGroupsAndStudents(finalOauth_token, finalOauth_token_secret, tokenResponseDTO.getUserId());
} catch (UnsupportedEncodingException | InvalidKeyException | NoSuchAlgorithmException e) {
/* } catch (UnsupportedEncodingException | InvalidKeyException | NoSuchAlgorithmException e) {
e.printStackTrace();
}
});
thread.start();
thread.start();*/
//logOut(oauth_token, oauth_token_secret);
return tokenResponseDTO;
}