diff --git a/login/token.php b/login/token.php index adfe1d4175d..9194de2df96 100644 --- a/login/token.php +++ b/login/token.php @@ -160,7 +160,7 @@ if (!empty($user)) { $token->timecreated = time(); $token->externalserviceid = $service_record->id; $tokenid = $DB->insert_record('external_tokens', $token); - add_to_log(SITEID, 'webservice', get_string('createtokenforuserauto', 'webservice'), '' , 'User ID: ' . $user->id); + add_to_log(SITEID, 'webservice', 'automatically create user token', '' , 'User ID: ' . $user->id); $token->id = $tokenid; } else { throw new moodle_exception('cannotcreatetoken', 'webservice', '', $serviceshortname);