Add API for updating a user's name, e-mail, and is_active flag.

Review Request #1789 — Created Nov. 22, 2019 and updated

guest5839
Review Board
BR_BR_8_1_1
B2348782
d56a147...
imartynov, Someone
This introduces support for an HTTP PUT to the User resource for
updating a full name, e-mail address, and the `is_active` flag. The full
name and e-mail address can be updated only if the auth backend supports
it, and if it does then the backend will be notified of any changes.

Users can modify only their own full name and e-mail address.
Administrators and special users with the `auth.change_user` permission
can also update these fields for other users, along with the `is_active`
flag.

There's also a fix for e-mail validation errors when creating a new user.

At this time, user settings and `extra_data` cannot be modified or
retrieved via the API, as we need to consider whether users should be
able to see this state for other users and whether there could be any
security impacts.

Testing Done:
Unit tests pass.

Reviewed at https://reviews.reviewboard.org/r/10765/

Ok

Description From Last Updated

Good idea!

guest5839guest5839
guest5839
  1. 
      
    1. I'd like to add a line here

  2. reviewboard/testing/testcase.py (Diff revision 1)
     
     

    Good idea!

  3. reviewboard/testing/testcase.py (Diff revision 1)
     
     

    I have no idea
    what is it for!

  4. 
      
guest5839
  1. Ship It!
  2. 
      
Loading...