Esempio n. 1
0
 def login_process_oid(self, **kw):
     oid_obj = process_oid(failure_redirect='.')
     c.user = oid_obj.claimed_by_user()
     session['userid'] = c.user._id
     session.save()
     if not c.user.username:
         flash('Please choose a user name for SourceForge, %s.'
               % c.user.get_pref('display_name'))
         redirect('setup_openid_user')
     redirect(kw.pop('return_to', '/'))
Esempio n. 2
0
 def login_process_oid(self, **kw):
     oid_obj = process_oid(failure_redirect='.')
     c.user = oid_obj.claimed_by_user()
     session['userid'] = c.user._id
     session.save()
     if not c.user.username:
         flash('Please choose a user name for SourceForge, %s.'
               % c.user.get_pref('display_name'))
         redirect('setup_openid_user')
     redirect(kw.pop('return_to', '/'))
Esempio n. 3
0
 def claim_process_oid(self, **kw):
     oid_obj = process_oid(failure_redirect='claim_oid')
     if c.user:
         c.user.claim_openid(oid_obj._id)
         flash('Claimed %s' % oid_obj._id)
     redirect('/auth/preferences/')
Esempio n. 4
0
 def claim_process_oid(self, **kw):
     oid_obj = process_oid(failure_redirect='claim_oid')
     if c.user:
         c.user.claim_openid(oid_obj._id)
         flash('Claimed %s' % oid_obj._id)
     redirect('/auth/prefs/')