public User createAccount ( String userName , String password ) throws IOException { User user = User . getById ( userName , true ) ; user . addProperty ( Details . fromPlainPassword ( password ) ) ; SecurityListener . fireUserCreated ( user . getId ( ) ) ; return user ; }
Creates a new user account by registering a password to the user .