我在我的Symfony应用程序中使用fosuserBundle登录。但是,登录不起作用,我的应用程序不显示任何消息。可能是if($("input[name=option]:checked").val()==allQuestions[currentquestion].correctAnswer){
correctAnswers++;
}
中的错误。
这是我的login.html.twig:
security.login.submit
答案 0 :(得分:0)
更改
<button type="button"
要
<button type="submit" id="_submit" name="_submit"
从
中删除value="{{ last_username }}"
<input type="text" name="_username" class="form-control" value="{{ last_username }}"