Kaynağa Gözat

Merge pull request #63 from ChlodAlejandro/python3-auth-redirect

Fix post-auth redirection
pull/64/head
Ben Kurtovic 5 ay önce
committed by GitHub
ebeveyn
işleme
b9c17fdc12
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: B5690EEEBB952194
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. +2
    -1
      src/copyvios/auth.py

+ 2
- 1
src/copyvios/auth.py Dosyayı Görüntüle

@@ -47,12 +47,13 @@ def oauth_login_end():
"https://meta.wikimedia.org/w/index.php", consumer_token, access_token
)

next_url = session.get("next", "/")
session.clear()
session["access_token"] = dict(zip(access_token._fields, access_token))
session["username"] = identity["username"]
session.permanent = True

return session.get("next", "/")
return next_url


def clear_login_session():


Yükleniyor…
İptal
Kaydet