1

I'm using cakeDC.users plugin for CakePHP 3.6.x with social login via google. Currently the default role for a new user is "user". How can a change this?

Michael
  • 11
  • 1

1 Answers1

1

You can specify the default role of all registered users via configuration file https://github.com/CakeDC/users/blob/master/config/users.php#L43

Override the Users.Registration.defaultRole and use the one you would like to use.

steinkel
  • 1,156
  • 9
  • 15