Cleaned login controller

This commit is contained in:
Rohan Sircar 2020-05-27 16:39:38 +05:30
parent a84c16a101
commit 3fdb464b55

View File

@ -7,22 +7,6 @@ import org.springframework.web.bind.annotation.GetMapping;
public class Login { public class Login {
@GetMapping("/login") @GetMapping("/login")
public String loginForm() { public String loginForm() {
// model.addAttribute("user", new ChatUser());
return "login"; return "login";
} }
// @PostMapping("/login")
// public String loginSubmit(@ModelAttribute ChatUser chatUser)
// {
// if(chatUser.getUserName().equalsIgnoreCase("") || chatUser.getPassword().equalsIgnoreCase("")) {
// return "error";
// }
//// System.out.println(chatUser.getPassword());
// return "user";
// }
@GetMapping("logout-success")
public String doLogout()
{
return "logout";
}
} }