Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
4b47d4af
Commit
4b47d4af
authored
Aug 02, 2017
by
Uman Shahzad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken test.
parent
1103a334
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
openedx/core/djangoapps/user_api/views.py
+2
-1
No files found.
openedx/core/djangoapps/user_api/views.py
View file @
4b47d4af
...
...
@@ -23,6 +23,7 @@ import third_party_auth
from
django_comment_common.models
import
Role
from
edxmako.shortcuts
import
marketing_link
from
openedx.core.djangoapps.site_configuration
import
helpers
as
configuration_helpers
from
openedx.core.djangoapps.user_api.accounts.api
import
check_account_exists
from
openedx.core.lib.api.authentication
import
SessionAuthenticationAllowInactiveUser
from
openedx.core.lib.api.permissions
import
ApiKeyHeaderPermission
from
openedx.features.enterprise_support.api
import
enterprise_customer_for_request
...
...
@@ -328,7 +329,7 @@ class RegistrationView(APIView):
username
=
data
.
get
(
'username'
)
# Handle duplicate email/username
conflicts
=
accounts
.
api
.
check_account_exists
(
email
=
email
,
username
=
username
)
conflicts
=
check_account_exists
(
email
=
email
,
username
=
username
)
if
conflicts
:
conflict_messages
=
{
"email"
:
accounts
.
EMAIL_CONFLICT_MSG
.
format
(
email_address
=
email
),
...
...
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