Source of file FacebookAuthenticator.php
Size: 0,997 Bytes - Last Modified: 2021-12-23T10:46:40+00:00
/var/www/docs.ssmods.com/process/src/code/security/FacebookAuthenticator.php
1234567891011121314151617181920212223242526272829303132333435363738 | <?php class FacebookAuthenticator extends Authenticator { public static function get_name() { if (Member::currentUser()) { return 'Facebook'; } else { return 'Facebook'; } } public static function get_login_form(Controller $controller) { return new FacebookLoginForm( $controller, 'LoginForm' ); } /** * Method to authenticate an user * * @param array $RAW_data Raw data to authenticate the user * @param Form $form Optional: If passed, better error messages can be * produced by using * {@link Form::sessionMessage()} * @return bool|Member Returns FALSE if authentication fails, otherwise * the member object */ public static function authenticate($RAW_data, Form $form = null) { return singleton('FacebookCallback')->loginUser(); } } |