diff --git a/lang/en/webservice.php b/lang/en/webservice.php index f92c829e334..24150073ea9 100644 --- a/lang/en/webservice.php +++ b/lang/en/webservice.php @@ -49,7 +49,6 @@ $string['createservicedescription'] = 'A service is a set of web service functio $string['createserviceforusersdescription'] = 'A service is a set of web service functions. You will allow users to access to a new service. On the Add service page check \'Enable\' and uncheck \'Authorised users\' options. Select \'No required capability\'.'; $string['createtoken'] = 'Create token'; $string['createtokenforuser'] = 'Create a token for a user'; -$string['createtokenforuserauto'] = 'Create a token for a user automatically'; $string['createtokenforuserdescription'] = 'Create a token for the web services user.'; $string['createuser'] = 'Create a specific user'; $string['createuserdescription'] = 'A web services user is required to represent the system controlling Moodle.'; diff --git a/login/token.php b/login/token.php index ae3adf012fe..334e6a2e597 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);