package cn.itcast.notepad.dao;
import cn.itcast.notepad.domain.User;
public class UserDaoImpl1 implements UserDao {
public boolean login(User user) {
if(user.getName().equals("admin") && "admin".equals(user.getPassword())) {
return true;
}
return false;
}
public boolean updatePwd(User user) {
return false;
}
public boolean regist(User user) {
return false;
}
} |
|