摘要: auth模块 auth中提供了许多实用方法: authenticate() 提供了用户认证功能,即验证用户名以及密码是否正确,一般需要username 、password两个关键字参数。 如果认证成功(用户名和密码正确有效),便会返回一个 User 对象。可以将User看做是默认的auth.user 阅读全文
posted @ 2018-08-16 14:46 伊豆豆 阅读(106) 评论(0) 推荐(0) 编辑