public void saveUser ( User user ) { LOG . trace ( "Trying to create a new user" ) ; // encode the raw password using bcrypt final String pwHash = passwordEncoder . encode ( user . getPassword ( ) ) ; user . setPassword ( pwHash ) ; dao . saveOrUpdate ( user ) ; LOG . info ( "Created the user " + user . getAccountName ( ) ) ; }
Used to create a user . Implements special logic by encoding the password .