-
Hi @datamweb i try to disable other user which is not register before from login via shield-oauth with add 'allow_register' to public array $oauthConfigs = [
'github' => [
'client_id' => 'Get it from GitHub',
'client_secret' => 'Get it from GitHub',
'allow_login' => false,
],
'google' => [
'client_id' => 'secret_id.apps.googleusercontent.com',
'client_secret' => 'secret_xxx',
'allow_login' => true,
'allow_register' => false,
],
// 'yahoo' => [
// 'client_id' => 'Get it from Yahoo',
// 'client_secret' => 'Get it from Yahoo',
// 'allow_login' => true,
// ],
]; but it still doesn't work, Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
datamweb
Apr 7, 2024
Replies: 1 comment 7 replies
-
Default behavior of Shield-Oauth is that when a user login an unregistered state, Shield-Oauth automatically registers the user, I don't want that to avoid accidental clicks. can the login and register links be differentiated? as follows: |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right, this is something other users might need too. I don't want to make promises, but I might make some code changes in my free time to have this feature by default.
If I make a change, I will tag you.