MCPcopy Create free account
hub / github.com/R4gd0ll/LazyAnFuZai / loginCheck

Method loginCheck

src/main/java/System/loginCheck.java:4–31  ·  view source on GitHub ↗
(String a,String pwd)

Source from the content-addressed store, hash-verified

2
3public class loginCheck {
4 public static String loginCheck(String a,String pwd) {
5 String result = "查看登录失败处理功能,";
6 int flag = 0;
7 if(!a.isEmpty()&& a!=""){
8 flag += 1;
9 try{
10 String b = a.substring(a.indexOf("=")+1);
11 result = result + "登录"+b+"秒后无操作超时,";
12 }catch (Exception e){
13
14 }
15 }else{
16 result = result + "未做登录超时配置,不符合安全要求";
17 }
18
19 String[] c = printResult.dataArray(pwd)[1].split("\\s+");
20 for(String d : c){
21 if(d.contains("retry=")){
22 result = result + retry(d)[0];
23 flag = flag + Integer.parseInt(retry(d)[1]);
24 }
25 }
26
27 if(flag<1){
28 result = result + "不符合安全要求";
29 }
30 return result;
31 }
32 private static String[] retry(String d){
33 String[] a = new String[2];
34 String result = "";

Callers 1

resultPrintMethod · 0.80

Calls 2

retryMethod · 0.95
dataArrayMethod · 0.80

Tested by

no test coverage detected