Revision 3b258643

b/snf-astakos-app/astakos/im/models.py
1152 1152
        return
1153 1153
    set_default_group(instance)
1154 1154
    # TODO handle socket.error & IOError
1155
    #register_users((instance,))
1155
    register_users((instance,))
1156 1156

  
1157 1157

  
1158 1158
def resource_post_save(sender, instance, created, **kwargs):
b/snf-astakos-app/astakos/im/target/shibboleth.py
153 153
        # eppn not stored in astakos models, create pending profile
154 154
        user, created = PendingThirdPartyUser.objects.get_or_create(
155 155
            third_party_identifier=eppn,
156
            provider='shibboleth',
157
            info=json.dumps(provider_info)
156
            provider='shibboleth'
158 157
        )
159 158
        # update pending user
160 159
        user.realname = realname
161 160
        user.affiliation = affiliation
162 161
        user.email = email
162
        user.info = json.dumps(provider_info)
163 163
        user.generate_token()
164 164
        user.save()
165 165

  
b/snf-astakos-app/astakos/im/target/twitter.py
165 165
        user, created = PendingThirdPartyUser.objects.get_or_create(
166 166
            third_party_identifier=userid,
167 167
            provider='twitter',
168
            info=json.dumps(provider_info)
169 168
        )
170 169
        # update pending user
171 170
        user.affiliation = affiliation
171
        user.info = json.dumps(provider_info)
172 172
        user.generate_token()
173 173
        user.save()
174 174

  
b/snf-astakos-app/astakos/im/templates/im/third_party_check_local.html
18 18
          <span class="left">YES</span>
19 19
          <span class="action-desc right">I want to add '{{ provider_title }}' as a new login method for my existing account</span>
20 20
        </a>
21
        <a href="{{ signup_url }}?key={{ token }}" class="button wide">
21
        <a href="{{ signup_url }}" class="button wide">
22 22
          <span class="left">NO</span>
23 23
          <span class="right action-desc">I want to create a new account</span>
24 24
        </a>

Also available in: Unified diff