Commit 1825b8e4 authored by Francois Marier's avatar Francois Marier
Browse files

Better error message in the case of Authentication errors

Instead of displaying "Mahara: Site unavailable", it can be
useful to let users know that it's an authentication error.

Change-Id: I8b875aa57ae089b8bea1042861212fa42deca4cb
Signed-off-by: default avatarFrancois Marier <>
parent f6f32876
......@@ -44,7 +44,13 @@ class AuthUnknownUserException extends UserException {}
* If appropriate - the 'message' of the exception will be used
* as the display message, so don't forget to language translate it
class AuthInstanceException extends UserException {}
class AuthInstanceException extends UserException {
public function strings() {
return array_merge(parent::strings(),
array('title' => $this->get_sitename() . ': Authentication problem'));
* We tried to call a method on an auth plugin that hasn't been init'ed
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