@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | public function user_login($username, $password) { |
| 65 | 65 | |
| 66 | 66 | $functionname = $this->config->auth_function; |
| 67 | - $params = array($this->config->auth_function_username_paramname => $username, |
|
| 67 | + $params = array($this->config->auth_function_username_paramname => $username, |
|
| 68 | 68 | $this->config->auth_function_password_paramname => $password); |
| 69 | 69 | |
| 70 | 70 | $result = $this->call_ws($this->config->auth_serverurl, $functionname, $params); |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | * @param bool $do_updates Optional: set to true to force an update of existing accounts |
| 82 | 82 | * @return int 0 means success, 1 means failure |
| 83 | 83 | */ |
| 84 | - public function sync_users(progress_trace $trace, $do_updates=false) { |
|
| 84 | + public function sync_users(progress_trace $trace, $do_updates = false) { |
|
| 85 | 85 | return true; |
| 86 | 86 | } |
| 87 | 87 | |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | |
| 92 | 92 | private function call_ws($serverurl, $functionname, $params = array()) { |
| 93 | 93 | |
| 94 | - $serverurl = $serverurl . '?wsdl'; |
|
| 94 | + $serverurl = $serverurl.'?wsdl'; |
|
| 95 | 95 | |
| 96 | 96 | $params = array_merge($this->config->ws_default_params, $params); |
| 97 | 97 | |
@@ -232,16 +232,16 @@ discard block |
||
| 232 | 232 | $config->changepasswordurl = ''; |
| 233 | 233 | } |
| 234 | 234 | |
| 235 | - set_config('protocol', $config->protocol, 'auth/ws'); |
|
| 236 | - set_config('auth_serverurl', $config->auth_serverurl, 'auth/ws'); |
|
| 237 | - set_config('default_params', $config->default_params, 'auth/ws'); |
|
| 238 | - set_config('auth_function', $config->auth_function, 'auth/ws'); |
|
| 235 | + set_config('protocol', $config->protocol, 'auth/ws'); |
|
| 236 | + set_config('auth_serverurl', $config->auth_serverurl, 'auth/ws'); |
|
| 237 | + set_config('default_params', $config->default_params, 'auth/ws'); |
|
| 238 | + set_config('auth_function', $config->auth_function, 'auth/ws'); |
|
| 239 | 239 | set_config('auth_function_username_paramname', $config->auth_function_username_paramname, 'auth/ws'); |
| 240 | 240 | set_config('auth_function_password_paramname', $config->auth_function_password_paramname, 'auth/ws'); |
| 241 | - set_config('auth_function_resultClass', $config->auth_function_resultClass, 'auth/ws'); |
|
| 242 | - set_config('auth_function_resultField', $config->auth_function_resultField, 'auth/ws'); |
|
| 243 | - set_config('removeuser', $config->removeuser, 'auth/ws'); |
|
| 244 | - set_config('changepasswordurl', $config->changepasswordurl, 'auth/ws'); |
|
| 241 | + set_config('auth_function_resultClass', $config->auth_function_resultClass, 'auth/ws'); |
|
| 242 | + set_config('auth_function_resultField', $config->auth_function_resultField, 'auth/ws'); |
|
| 243 | + set_config('removeuser', $config->removeuser, 'auth/ws'); |
|
| 244 | + set_config('changepasswordurl', $config->changepasswordurl, 'auth/ws'); |
|
| 245 | 245 | |
| 246 | 246 | return true; |
| 247 | 247 | } |
@@ -48,8 +48,8 @@ |
||
| 48 | 48 | |
| 49 | 49 | // Now get cli options. |
| 50 | 50 | list($options, $unrecognized) = cli_get_params(array('noupdate' => false, |
| 51 | - 'verbose'=> false, |
|
| 52 | - 'help' => false), array('n' => 'noupdate', 'v' => 'verbose', 'h' => 'help')); |
|
| 51 | + 'verbose'=> false, |
|
| 52 | + 'help' => false), array('n' => 'noupdate', 'v' => 'verbose', 'h' => 'help')); |
|
| 53 | 53 | |
| 54 | 54 | if ($unrecognized) { |
| 55 | 55 | $unrecognized = implode("\n ", $unrecognized); |