A self hosted chat application with end-to-end encrypted messaging.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
593 B

package org.ros.chatto.controller;
import org.ros.chatto.model.ChatUser;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
@Controller
@RequestMapping("/login")
public class Login {
@PostMapping
public ModelAndView login(@ModelAttribute ChatUser chatUser)
{
ModelAndView mv = new ModelAndView("login");
mv.addObject(chatUser);
return mv;
}
}