Skip to content

Commit 4a5773f

Browse files
committed
allow username to be updated by itself
1 parent ea5445f commit 4a5773f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

umapi_client/functional.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,6 @@ def update(self, email=None, username=None, first_name=None, last_name=None, cou
175175
"""
176176
if username and self.id_type != IdentityTypes.federatedID:
177177
raise ArgumentError("You cannot set username except for a federated ID")
178-
if username and '@' in username and not email:
179-
raise ArgumentError("Cannot update email-type username when email is not specified")
180178
if email and username and email.lower() == username.lower():
181179
raise ArgumentError("Specify just email to set both email and username for a federated ID")
182180
updates = {}

umapi_client/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1919
# SOFTWARE.
2020

21-
__version__ = "2.21"
21+
__version__ = "2.22"

0 commit comments

Comments
 (0)