To display a login/logout link on any page, just load the component:
<?php include_component( 'sfGoogleLogin', 'link' ); ?>
The sfGoogleLogin/login action can be used als the default login action. When the user is logged in, the sfUser object will have set the GoogleAccount as an attribute called "sfGoogleLogin_account".
- The user clicks the login link.
- A popup is displayed, showing the Google login page. This page displays the domain, which the user will be logged in to.
- The user enters his email and password and can choose if the login shall be saved or not.
- Now the user is logged in. The popup closes itself and the page reloads.
- Project info: https://github.com/acetous/sfGoogleLoginPlugin
- Bugs: https://github.com/acetous/sfGoogleLoginPlugin/issues
Feel free to contribute code at github.