rtCamp / login-with-google

Minimal plugin which allows WordPress user to login with google.
https://wordpress.org/plugins/login-with-google/
GNU General Public License v2.0
64 stars 19 forks source link

Provide WP config variable for app secret #2

Closed PatelUtkarsh closed 5 years ago

PatelUtkarsh commented 5 years ago

If we restrict PHP to 7 and above then we can use array define in PHP as it's supported from 7 https://www.php.net/manual/en/function.define.php.

define( 'GOOGLE_LOGIN_CONFIG', [
                 'client_secret' => '',
                 'restrict_domain' => '',
          ] );
dhaval-parekh commented 5 years ago

This has covered in #4 PR : #14