mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merged [47074]: Added register and unregister as aliases to Authenticator.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60509 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
41ebffce4f
commit
f2e8c234b3
@ -59,6 +59,10 @@ abstract class Authenticator extends Object {
|
|||||||
*/
|
*/
|
||||||
public abstract static function get_name();
|
public abstract static function get_name();
|
||||||
|
|
||||||
|
public static function register($authenticator) {
|
||||||
|
self::register_authenticator($authenticator);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register a new authenticator
|
* Register a new authenticator
|
||||||
@ -91,6 +95,10 @@ abstract class Authenticator extends Object {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function unregister($authenticator) {
|
||||||
|
self::unregister_authenticator($authenticator);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove a previously registered authenticator
|
* Remove a previously registered authenticator
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user