Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
521a03ac
Commit
521a03ac
authored
Aug 08, 2014
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix method RestrictedAccessToken_getExternalLogin
parent
1642ca4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
bt5/erp5_access_token/SkinTemplateItem/portal_skins/erp5_access_token/RestrictedAccessToken_getExternalLogin.xml
...5_access_token/RestrictedAccessToken_getExternalLogin.xml
+4
-4
bt5/erp5_access_token/bt/revision
bt5/erp5_access_token/bt/revision
+1
-1
No files found.
bt5/erp5_access_token/SkinTemplateItem/portal_skins/erp5_access_token/RestrictedAccessToken_getExternalLogin.xml
View file @
521a03ac
...
@@ -63,13 +63,13 @@ if access_token_document.getValidationState() == \'validated\':\n
...
@@ -63,13 +63,13 @@ if access_token_document.getValidationState() == \'validated\':\n
if (request["REQUEST_METHOD"] == access_token_document.getUrlMethod()) and \\\n
if (request["REQUEST_METHOD"] == access_token_document.getUrlMethod()) and \\\n
(request["ACTUAL_URL"] == access_token_document.getUrlString()):\n
(request["ACTUAL_URL"] == access_token_document.getUrlString()):\n
\n
\n
reference =
REQUEST.getHeader("X-REFERENCE
", None)\n
reference =
request.getHeader("X-ACCESS-TOKEN-SECRET
", None)\n
if reference is None:\n
if reference is None:\n
reference = request.form.get("
reference
", "INVALID_REFERERENCE")\n
reference = request.form.get("
access_token_secret
", "INVALID_REFERERENCE")\n
\n
\n
if access_token_document.getReference() != reference:\n
if access_token_document.getReference() != reference:\n
return None\n
return None\n
\n
\n
agent_document = access_token_document.getAgentValue()\n
agent_document = access_token_document.getAgentValue()\n
if agent_document is not None:\n
if agent_document is not None:\n
result = agent_document.getReference(None)\n
result = agent_document.getReference(None)\n
...
...
bt5/erp5_access_token/bt/revision
View file @
521a03ac
4
5
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment