yueyoum / django-social-login

[DISCARDED]A Django APP for Social accounts login via OAuth2 Service
BSD 4-Clause "Original" or "Old" License
103 stars 38 forks source link

@login_required decorator not work,it will always redirect to the login url although after I logined in using social account. please check it. thanks. #1

Open kingctan opened 11 years ago

kingctan commented 11 years ago

@login_required decorator not work,it will always redirect to the login url although after I logined in using social account. please check it. thanks.

yueyoum commented 11 years ago

哦,example例子中并没有使用 django自带的用户系统。 所以 login_required 装饰器并不能正常工作。

就如同我在README中写的, 是根据 if request.siteuser 来判断用户是否登录的。