class AuthController {

    @Autowired
    private IUserService userService;

    @GetMapping("/login")
    public String devices(String name, String passwd){<FILL_FUNCTION_BODY>}
}

        User user = userService.getUser(name, passwd);
        if (user != null) {
            return "success";
        }else {
            return "fail";
        }
    
<no_super_class>