Skip to content

Commit 5d54cfb

Browse files
Merge pull request #107 from Luci2015/v2
update functional.py
2 parents 072ab50 + 7eaa1ec commit 5d54cfb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

umapi_client/functional.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,6 @@ def update(self, email=None, username=None, first_name=None, last_name=None, cou
177177
raise ArgumentError("You cannot set username except for a federated ID")
178178
if username and '@' in username and not email:
179179
raise ArgumentError("Cannot update email-type username when email is not specified")
180-
if email and username and email.lower() == username.lower():
181-
raise ArgumentError("Specify just email to set both email and username for a federated ID")
182180
updates = {}
183181
for k, v in dict(email=email, username=username,
184182
firstname=first_name, lastname=last_name,

0 commit comments

Comments
 (0)