usos poprawki
This commit is contained in:
parent
84819400d4
commit
e91163f84c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user