Cleaned login controller
This commit is contained in:
parent
a84c16a101
commit
3fdb464b55
@ -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";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user