-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default role for new users #461
Comments
Hi, by default yawik runs in production mode. If you make changes to the config files in autoload, please make sure to remove the /var/www/YAWIK# ls -1 cache/module-c* you can also register as an user by using a route Example: Regards, Carsten |
Thank you for the quick answer Carsten, And while the specific user route works, I need to have it so that new account are always and only users. I have now found that when I edit the I also don't understand why the config does not work, is it the way I did the config or is there maybe a different problem in my setup? I had a similar problem with my smpt config, it read all of the actual config but the I attached the two files which are placed in config/autoload |
The 'role' option in auth.options.global.php is currently only used when user are created automatically through "external" login. So we can consider this a non-convinient behaviour. The option should indeed also set the default user role for registration through the web ui. |
Hi,
I just installed YAWIK for the first time and am working through all the options.
I'm trying to make the default role for new Users, applicant/user instead of recruiter.
I have the following config in autoload/auth.options.global.php:
'role' => 'user',
When I go on the login page and switch to register, there is the hidden field
<input type="hidden" name="register[role]" id="register-role" class=" form-control " value="user">
But the new users are still recruiters.
Am I missing anything else?
I did not find anything at all about changing default role in the docs and looking through old issues here I would have expected the hidden field to change what I want.
Hope someone can help me with this.
Sincerely
Marvin
The text was updated successfully, but these errors were encountered: