Commit d5476f0a authored by Francois Marier's avatar Francois Marier

Add a new exception that can be used by auth plugins that auto-create users

Change-Id: I0f98dcdef3b454f68f7d6e4296713f6227a5297c
Signed-off-by: default avatarFrancois Marier <francois@catalyst.net.nz>
parent 1825b8e4
......@@ -58,6 +58,20 @@ class AuthInstanceException extends UserException {
*/
class UninitialisedAuthException extends SystemException {}
/**
* We tried creating automatically creating an account for a user but
* it failed for a reason that the user might want to know about
* (e.g. they used an email address that's already used on the site)
*/
class AccountAutoCreationException extends AuthInstanceException {
public function strings() {
return array_merge(parent::strings(),
array('message' => 'The automatic creation of your user account failed.'
. "\nDetails if any, follow:"));
}
}
/**
* Base authentication class. Provides a common interface with which
* authentication can be carried out for system users.
......
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