• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Change
  • Next Change →

Changeset 1680 for branches/3.0-Beta2

Show
Ignore:
Timestamp:
06/27/07 10:11:24 (13 months ago)
Author:
jmoore
Message:

Adding password logic to AddUserTask? (pass "password=secret" over stdin)

Files:
1 modified

  • branches/3.0-Beta2/components/common/src/ome/util/tasks/admin/AddUserTask.java (modified) (2 diffs)

Legend:

Unmodified
Added
Removed
  • branches/3.0-Beta2/components/common/src/ome/util/tasks/admin/AddUserTask.java

    r1282 r1680  
    5757     */ 
    5858    public enum Keys { 
    59         omename, firstname, lastname, middlename, institution, email, group 
     59        omename, firstname, lastname, middlename, institution, email, group, password 
    6060    } 
    6161 
    … …  
    8484        e.setEmail(enumValue(email)); 
    8585        long uid = admin.createUser(e, groupName); 
     86        String pass = enumValue(password); 
     87        if (pass != null) { 
     88            admin.changeUserPassword(e.getOmeName(), pass); 
     89        } 
    8690        getLogger().info( 
    8791                String.format("Added user %s with id %d", e.getOmeName(), uid)); 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/