use the defaults, but allow post to override
This commit is contained in:
Родитель
0932ab4f30
Коммит
82f0254236
|
@ -49,8 +49,7 @@ class responder(OpenIDResponder):
|
||||||
parameter that indicates what Google Apps should have access requested.
|
parameter that indicates what Google Apps should have access requested.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
request_attributes = request.POST.get('ax_attributes',
|
request_attributes = request.POST.get('ax_attributes', ax_attributes.keys())
|
||||||
['country', 'email', 'first_name', 'last_name', 'language'])
|
|
||||||
ax_request = ax.FetchRequest()
|
ax_request = ax.FetchRequest()
|
||||||
for attr in request_attributes:
|
for attr in request_attributes:
|
||||||
ax_request.add(ax.AttrInfo(attributes[attr], required=True))
|
ax_request.add(ax.AttrInfo(attributes[attr], required=True))
|
||||||
|
|
Загрузка…
Ссылка в новой задаче