Github user michaelarusso commented on a diff in the pull request:

    https://github.com/apache/usergrid/pull/544#discussion_r70094310
  
    --- Diff: 
stack/rest/src/main/java/org/apache/usergrid/rest/management/organizations/users/UsersResource.java
 ---
    @@ -129,11 +129,16 @@ public ApiResponse newUserForOrganizationFromForm( 
@Context UriInfo ui, @FormPar
             }
     
             if ( user == null ) {
    -            user = management.createAdminUser( organization.getUuid(), 
username, name, email, password, false, false );
     
    -            // A null may be returned if the user fails validation check
    -            if ( user != null ) {
    -                management.startAdminUserPasswordResetFlow( 
organization.getUuid(), user );
    +            if ( tokens.isExternalSSOProviderEnabled() ){
    +             user = 
management.createAdminUser(organization.getUuid(),username,name,email,password,true,false);
    --- End diff --
    
    Let's add some comments about why we're auto-activating the user in this 
case.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to