MCPcopy Index your code
hub / github.com/castello/spring_basic / loginCheck

Method loginCheck

ch4/LoginController.java:73–85  ·  view source on GitHub ↗
(String id, String pwd)

Source from the content-addressed store, hash-verified

71 }
72
73 private boolean loginCheck(String id, String pwd) {
74 User user = null;
75
76 try {
77 user = userDao.selectUser(id);
78 } catch (Exception e) {
79 e.printStackTrace();
80 return false;
81 }
82
83 return user!=null && user.getPwd().equals(pwd);
84// return "asdf".equals(id) && "1234".equals(pwd);
85 }
86}

Callers 1

loginMethod · 0.95

Calls 3

getPwdMethod · 0.95
selectUserMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected