Настройки в ямл файл
This commit is contained in:
@ -318,7 +318,7 @@ public class MainController implements ServletContextAware {
|
||||
|
||||
if(jwt_a.equals("") || countOccurrences(jwt_a, '.')!=2)
|
||||
{
|
||||
throw new CustomException(10000, trt.trt("Please_send_a_valid_JWT_token"),null);
|
||||
throw new CustomException(10000, trt.trt("Please_log_in"),null);
|
||||
}
|
||||
//Проверяю подпись токена
|
||||
Jws<Claims> claims = null;
|
||||
@ -375,7 +375,7 @@ public class MainController implements ServletContextAware {
|
||||
|
||||
if(jwt_a.equals("") || countOccurrences(jwt_a, '.')!=2)
|
||||
{
|
||||
throw new CustomException(10000, trt.trt("Please_send_a_valid_JWT_token"),null);
|
||||
throw new CustomException(10000, trt.trt("Please_log_in"),null);
|
||||
}
|
||||
//Проверяю подпись токена
|
||||
Jws<Claims> claims = null;
|
||||
@ -441,7 +441,7 @@ public class MainController implements ServletContextAware {
|
||||
try {
|
||||
if(jwt_a.equals("") || countOccurrences(jwt_a, '.')!=2)
|
||||
{
|
||||
result=createStrJSONError(10000,trt.trt("Please_send_a_valid_JWT_token"), (String)null, (String)null);
|
||||
result=createStrJSONError(10000,trt.trt("Please_log_in"), (String)null, (String)null);
|
||||
return result;
|
||||
}
|
||||
|
||||
@ -691,7 +691,7 @@ public class MainController implements ServletContextAware {
|
||||
|
||||
if(jwt_a.equals("") || countOccurrences(jwt_a, '.')!=2)
|
||||
{
|
||||
throw new CustomException(10000, trt.trt("Please_send_a_valid_JWT_token"),null);
|
||||
throw new CustomException(10000, trt.trt("Please_log_in"),null);
|
||||
}
|
||||
//Проверяю подпись токена
|
||||
Jws<Claims> claims = null;
|
||||
@ -1253,7 +1253,7 @@ public class MainController implements ServletContextAware {
|
||||
if(jwt_a.equals("") || countOccurrences(jwt_a, '.')!=2 || jwt_r.equals("") || countOccurrences(jwt_r, '.')!=2 )
|
||||
{
|
||||
logout(response,request);
|
||||
throw new CustomException(10000, trt.trt("Please_send_a_valid_JWT_token"),null);
|
||||
throw new CustomException(10000, trt.trt("Please_log_in"),null);
|
||||
}
|
||||
|
||||
//Разбираю токен без проверки, чтобы выбрать email
|
||||
@ -1600,7 +1600,7 @@ public class MainController implements ServletContextAware {
|
||||
|
||||
if(jwt_a.equals("") || countOccurrences(jwt_a, '.')!=2)
|
||||
{
|
||||
return createStrJSONError(10000,trt.trt("Please_send_a_valid_JWT_token"),(String)null,(String)null);
|
||||
return createStrJSONError(10000,trt.trt("Please_log_in"),(String)null,(String)null);
|
||||
}
|
||||
//Connection conn = getConnection();
|
||||
//Checking the token signature
|
||||
|
||||
@ -25,9 +25,11 @@
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<root level="info">
|
||||
<!--root level="info"-->
|
||||
<root level="warn">
|
||||
<appender-ref ref="FILE" />
|
||||
<appender-ref ref="CONSOLE" />
|
||||
</root>
|
||||
|
||||
|
||||
</configuration>
|
||||
|
||||
Reference in New Issue
Block a user