这是一个创建于 2859 天前的主题,其中的信息可能已经有所发展或是发生改变。
用 django 实现登录包括用户名 /密码方式和微信登录方式,微信登录时我仿照用户名密码登录已经做了 authentication 和 login 操作,并且 request.user 里面也赋值了。但是 render 之后, request.user 总是 anonymous ,有人知道这个 user 在 render 之前怎么赋值的吗?
|
|
1
sciooga 2016-11-30 19:42:12 +08:00 via Android
不知道你怎么实现的微信登录,看起来是 cookie 没有正常的保存在 client 。
|