File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
auth/src/main/java/org/comroid/auth/controller Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 19
19
import org .springframework .ui .Model ;
20
20
import org .springframework .web .bind .annotation .GetMapping ;
21
21
import org .springframework .web .bind .annotation .PostMapping ;
22
+ import org .springframework .web .bind .annotation .RequestMapping ;
22
23
import org .springframework .web .bind .annotation .RequestParam ;
23
- import org .springframework .web .bind .annotation .RestController ;
24
24
import org .springframework .web .util .NestedServletException ;
25
25
26
26
import java .io .PrintWriter ;
29
29
import java .util .Optional ;
30
30
31
31
@ Controller
32
- @ RestController
33
32
public class GenericController implements ErrorController {
34
33
@ Autowired
35
34
private AccountRepository accounts ;
@@ -102,6 +101,7 @@ public String login(Model model) {
102
101
.complete ();
103
102
}
104
103
104
+ @ RequestMapping
105
105
@ PostMapping (value = "/login" , consumes = MediaType .APPLICATION_FORM_URLENCODED_VALUE )
106
106
public String doLogin (
107
107
Model model ,
You can’t perform that action at this time.
0 commit comments