Revision c72d5a13 snf-astakos-app/astakos/im/target/twitter.py

b/snf-astakos-app/astakos/im/target/twitter.py
145 145
        )
146 146
        if user.is_active:
147 147
            # authenticate user
148
            return prepare_response(request,
148
            response = prepare_response(request,
149 149
                                    user,
150 150
                                    request.GET.get('next'),
151 151
                                    'renew' in request.GET)
152
            response.set_cookie('astakos_last_login_method', 'twitter')
153
            return response
152 154
        else:
153 155
            message = user.get_inactive_message()
154 156
            messages.error(request, message)

Also available in: Unified diff