django注册用户后登录一直说用户或密码错误,有大佬可以帮忙解决一下吗
前端html
<form method="post" >
{% csrf_token %}
<div class="form-group form-floating-label">
<input id="username" name="username" type="text" class="form-control input-border-bottom" required>
<label for="username" class="placeholder">用户名</label>
</div>
<div class="form-group form-floating-label">
<input id="password" name="password" type="password" class="form-control input-border-bottom" required>
<label for="password" class="placeholder">密码</label>
</div>
<div class="form-action mb-3">
<input type="submit" name="" value="登录" class="btn btn-primary