Commit 8c890a3e authored by Robert Lyon's avatar Robert Lyon

Fixing duplicate lang string (Bug #1393622)

Have adjusted the testclient to alert bad user/pass for one of the
strings - this should be ok as it's only for the testclient interface, which
only the admins can see.

Change-Id: I5f8857058243108715ef19e7d51587b9bf800f7b
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 71556b3a
......@@ -169,7 +169,7 @@ $string['sauthtype'] = 'AuthType';
$string['enterparameters'] = 'Enter Function Parameters';
$string['testclientinstructions'] = 'This is the interactive test client facility for Web Services. This enables you to select a function and then execute it live against the current system. Please be aware that ANY function you eecute will run for real.';
$string['executed'] = 'Function call executed';
$string['invaliduser'] = 'Invalid wsusername/wspassword supplied';
$string['invaliduserpass'] = 'Invalid wsusername/wspassword supplied for "%s"';
$string['invalidtoken'] = 'Invalid wstoken supplied';
//oauth server registry
......
......@@ -320,7 +320,7 @@ function testclient_submit(Pieform $form, $values) {
$auth = new AuthWebservice($auth_instance->id);
if (!$auth->authenticate_user_account($dbuser, $values['wspassword'], 'webservice')) {
// log failed login attempts
$SESSION->add_error_msg(get_string('invaliduser', 'auth.webservice', $values['wsusername']));
$SESSION->add_error_msg(get_string('invaliduserpass', 'auth.webservice', $values['wsusername']));
redirect('/webservice/testclient.php?' . implode('&', $params));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment