Source of file MemberAuthenticatorWithSignup.php
Size: 1,213 Bytes - Last Modified: 2021-12-23T10:46:40+00:00
/var/www/docs.ssmods.com/process/src/code/security/MemberAuthenticatorWithSignup.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 | <?php /** * Authenticator for the default "member" method * * @author Markus Lanthaler <markus@silverstripe.com> * @package sapphire * @subpackage security */ class MemberAuthenticatorWithSignup extends Authenticator { /** * Method that creates the login form for this authentication method * * @param Controller The parent controller, necessary to create the * appropriate form action tag * @return Form Returns the login form to use with this authentication * method */ public static function get_login_form(Controller $controller) { return Object::create("MemberLoginFormWithSignup", $controller, "LoginForm"); } /** * Get the name of the authentication method * * @return string Returns the name of the authentication method. */ public static function get_name() { if (Member::currentUser()) { return _t('MemberAuthenticator.UPDATE', "Update your account details"); } else { return _t('MemberAuthenticator.SIGNUP', "Signup with Email"); } } public static function authenticate($RAW_data, Form $form = null) { return true; } } |