2007-09-16 02:44:30 +02:00
|
|
|
<?php
|
2016-06-23 01:37:22 +02:00
|
|
|
|
|
|
|
namespace SilverStripe\Security;
|
|
|
|
|
2016-08-19 00:51:35 +02:00
|
|
|
use SilverStripe\Core\Injector\Injector;
|
|
|
|
use SilverStripe\Forms\Form;
|
2016-06-23 01:37:22 +02:00
|
|
|
|
2007-09-16 02:44:30 +02:00
|
|
|
/**
|
|
|
|
* Abstract base class for a login form
|
|
|
|
*
|
|
|
|
* This class is used as a base class for the different log-in forms like
|
|
|
|
* {@link MemberLoginForm} or {@link OpenIDLoginForm}.
|
|
|
|
*
|
|
|
|
* @author Markus Lanthaler <markus@silverstripe.com>
|
|
|
|
*/
|
2016-11-29 00:31:16 +01:00
|
|
|
abstract class LoginForm extends Form
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Authenticator class to use with this login form
|
|
|
|
*
|
|
|
|
* Set this variable to the authenticator class to use with this login
|
|
|
|
* form.
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $authenticator_class;
|
|
|
|
|
|
|
|
/**
|
2017-04-14 05:30:55 +02:00
|
|
|
* Return the title of the form for use in the frontend
|
|
|
|
* For tabs with multiple login methods, for example.
|
|
|
|
* This replaces the old `get_name` method
|
|
|
|
* @return string
|
2016-11-29 00:31:16 +01:00
|
|
|
*/
|
2017-04-14 05:30:55 +02:00
|
|
|
abstract public function getAuthenticatorName();
|
2007-09-16 02:44:30 +02:00
|
|
|
}
|