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 {
@GetMapping("/login")
public String loginForm() {
// model.addAttribute("user", new ChatUser());
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";
return "login";
}
}