从abstractBaseUser继承过来的自己写的User类 可以直接用原生的authentication进行认证吗?
不行,需要重写验证的 backend,建议从 abstractuser继承。
谢谢大家了