Skip to content
Snippets Groups Projects
Commit 726fb801 authored by Astor Bizard's avatar Astor Bizard :dog2:
Browse files

Changed password exception for webservices to include an errorcode

parent b669085f
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ class mod_vpl_webservice extends external_api { ...@@ -35,7 +35,7 @@ class mod_vpl_webservice extends external_api {
throw new Exception( get_string( 'opnotallowfromclient', VPL ) . ' ' . getremoteaddr() ); throw new Exception( get_string( 'opnotallowfromclient', VPL ) . ' ' . getremoteaddr() );
} }
if (! $vpl->pass_password_check( $password )) { if (! $vpl->pass_password_check( $password )) {
throw new Exception( get_string( 'requiredpassword', VPL ) ); throw new moodle_exception('requiredpassword', VPL);
} }
return $vpl; return $vpl;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment