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);
|
TokenResponseDTO tokenResponseDTO = createUserAccountAndReturnHeaderToken(oauth_token, oauth_token_secret);
|
||||||
String finalOauth_token = oauth_token;
|
String finalOauth_token = oauth_token;
|
||||||
String finalOauth_token_secret = oauth_token_secret;
|
String finalOauth_token_secret = oauth_token_secret;
|
||||||
Thread thread = new Thread(() -> {
|
/* Thread thread = new Thread(() -> {
|
||||||
try {
|
try {*/
|
||||||
if (!checkIfEmploye(finalOauth_token, finalOauth_token_secret, tokenResponseDTO.getUserId()))
|
//if (!checkIfEmploye(finalOauth_token, finalOauth_token_secret, tokenResponseDTO.getUserId()))
|
||||||
updateUserGroupsAndStudents(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();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
thread.start();
|
thread.start();*/
|
||||||
//logOut(oauth_token, oauth_token_secret);
|
//logOut(oauth_token, oauth_token_secret);
|
||||||
return tokenResponseDTO;
|
return tokenResponseDTO;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user